Displaying 20 results from an estimated 6000 matches similar to: "Sample fromt he real line"
2013 Nov 21
1
R CMD check (v-3.0.2) not loading $R_CHECK_ENVIRON
Hi all,
I'm trying to check a package using R CMD check --as-cran <package>. When
I do so, the check fails upon not finding the dependencies which I have
installed in a non-standard location. Per the manual, I created
~/.R/check.Renviron :
$ cat ~/.R/check.Renviron
R_LIBS=/usr/lib64/R/library:/usr/lib64/R/var
R_LIBS_SITE=/usr/lib64/R/library:/usr/lib64/R/var
No luck. I tried
2011 Jan 17
2
Difficult with round() function
Dear list,
I'm writing a function to re-grid a data set from finer to coarser
resolutions in R as follows (I use this function with sapply/apply):
gridResize <- function(startVec = stop("What's your input vector"),
to = stop("Missing 'to': How long do you want the fnial vector to be?")){
from <- length(startVec)
shortVec<-numeric()
tics <- from*to
2006 Mar 21
1
Simulate Mixture Model data
Dear R Users??
I woould like to generate mixture model data.
I try two type method as followings two method, can anyone tell me which is right? or better?
1. generate two vectors data y1 and y2 from f1 and f2 seperately, and calculate y=alpha1*y1+alpha2*y2,
2. generate prob=unif(1), if prob <alpha1 y=y1, else y=y2.
Can anyone give me some idea?
Thanks so much!
Goeland
goeland at
2009 May 07
1
error using lapply with oneway_test (coin package)
Dear expeRts,
I would like to use a oneway_test (from package coin) to test whether
two groups differ on various variables. The variables are encoded
within a data frame. Unfortunately, I obtained an error, that I don't
understand. Could you please help me ?
Example:
library(coin)
y <- as.data.frame(matrix(rnorm(200), ncol=2))
group <- as.factor(unif(100))
lapply(y,
2003 Mar 06
1
Problems with variable types.
Hi all,
I have problems in a dataframe variables types.
Look:
from a loop function:
for(...){
...
dados.fin <- rbind(dados.fin, c(L=j, A=j^2,
Nsp=nsps,
N=length(amosfin$SP),
AmT="am",NAm=nam,
AMST=amst))
dados.fin <- rbind(dados.fin, c(L=j, A=j^2,
2017 Nov 03
2
Extreme bunching of random values from runif with Mersenne-Twister seed
Bill,
I have clarified this on SO, and I will copy that clarification in here:
"Sure, we tested them on other 8-digit numbers as well & we could not
replicate. However, these are honest-to-goodness numbers generated by a
non-adversarial system that has no conception of these numbers being used
for anything other than a unique key for an entity -- these are not a
specially constructed
2007 Apr 20
2
MVC Philosophy
My directory browsing app shows lists of file. If the item is a folder,
show a folder icon and link to the action that shows directory contents.
If the item is a graphics file, show a thumbnail and link to a larger
view. If the item is a non-graphics file, show an appropriate icon and
stream the file if the link is clicked.
The controller creates an array of arrays of items in the current
folder,
2005 May 03
0
R on Mac OS X: odd errors when doing install.packages()
Should I be worried? The installation seems to go through fine and
apparently nothing is broken. The errors I repeatedly get are like this:
g++ -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include -I/usr/
local/include -DUNIX -DOPTIM -DNONR -fno-common -g -O2 -c unif.cpp -o unif.o
g++ -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o rgenoud.so c
hange_order.o
2013 Oct 08
3
Latin Hypercube Sample and transformation to uniformly distributed integers or classes
Hi,
I'd like to use Latin Hypercube Sampling (LHC) in the the context of
uncertainty / sensitivity analysis of a complex model with approximately 10
input variables. With the LHC approach I'd like to generate parameter
combinations for my model input variables.
Therefore I came across an simple example here on the mailing list (
2017 Nov 03
2
Extreme bunching of random values from runif with Mersenne-Twister seed
Bill,
Appreciate the point that both you and Serguei are making, but the sequence
in question is not a selected or filtered set. These are values as observed
in a sequence from a mechanism described below. The probabilities required
to generate this exact sequence in the wild seem staggering to me.
T
On Fri, Nov 3, 2017 at 11:27 PM, William Dunlap <wdunlap at tibco.com> wrote:
>
2004 Apr 29
1
Need an explanation about different protocols
Hello,
Is there someody who can explain me the meaning of these sentence.
"Sip is philosophically horizontal and H.323/MGCP are vertical"
Thank U
(if you have some links to share about this protocols, share it :) )
Ignace
2016 Jun 15
1
https and self signed
On Wed, Jun 15, 2016 at 10:02:57AM -0500, Valeri Galtsev wrote:
>
> On Wed, June 15, 2016 9:17 am, Warren Young wrote:
> >>
> >> Nowadays it's quite easy to get normal ssl certificates for free. E.g.
> >
> > Today, I would prefer Let???s Encrypt:
> >
> > https://letsencrypt.org/
> >
> > It is philosophically aligned with the open
2011 Feb 14
1
Optimal Y>=q cutoff after logistic regression
Hi,
I understand that dichotimization of the predicted probabilities after
logistic regression is philosophically questionable, throwing out
information, etc.
But I want to do it anyway. I'd like to include as a measure of fit %
of observations correctly classified because it's measured in units
that non-statisticians can understand more easily than area under the
ROC curve, Dxy, etc.
2010 Jun 18
4
Drawing sample from a circle
Hi, I would like to draw 10 uniformly distributed sample points from a circle with redius one and centered at (0,0). Is there any R function to do that?
Thanks,
[[alternative HTML version deleted]]
2002 Jan 24
2
random number generation issues with r and compiled C code
Dear People,
I have been writing a simulation routine that is currently entirely
written in c++. I've been using the R standalone math library to give me
random number generation for this. However, I have had to set the seed
myself, and I am using
set_seed(time(NULL), clock)
for every call to unif_rand().
However, this works really badly. The random numbers aren't uniform at
all. Does
2004 Jun 29
0
gambling problem
Hi all
i have an interesting project that i have been working on. i intended to
set this as a first year programming problem but then changed my mind
since i thought that it might be too difficult for them to program.
the problem is as follows:
You have been approached by a local casino in order to
investigate the performance of one of their slot machines.
The slot machine
2016 Jun 15
8
https and self signed
On Jun 15, 2016, at 7:57 AM, ????????? ???????? <nevis2us at infoline.su> wrote:
>
> Nowadays it's quite easy to get normal ssl certificates for free. E.g.
>
> http://www.startssl.com
> http://buy.wosign.com/free
Today, I would prefer Let?s Encrypt:
https://letsencrypt.org/
It is philosophically aligned with the open source software world, rather than act as bait
2011 Mar 11
1
Easy 'apply' question
Dear list,
I couldn't find a solution for this problem online, as simple as it seems.
Here's the problem:
#Construct test dataframe
tf <- data.frame(1:3,4:6,c("A","A","A"))
#Try the apply function I'm trying to use
test <- apply(tf,2,function(x) if(is.numeric(x)) mean(x) else unique(x)[1])
#Look at the output--all columns treated as character
2004 Apr 14
1
Feature proposal and implementation plan: --delete-delay
Hi folks,
One feature I've wanted in rsync is the ability to delete files that no
longer exist in the source *after some specified grace period.*
The functionality I'm looking for is a backup system that won't actually
delete files until a week or two after the user does. This would:
1. Protect against accidental file deletions; the user would have
some time to realize the
2010 Dec 02
1
Arrange elements on a matrix according to rowSums + short 'apply' Q
Greetings,
My goal is to create a Markov transition matrix (probability of moving from
one state to another) with the 'highest traffic' portion of the matrix
occupying the top-left section. Consider the following sample:
inputData <- c(
c(5, 3, 1, 6, 7),
c(9, 7, 3, 10, 11),
c(1, 2, 3, 4, 5),
c(2, 4, 6, 8, 10),
c(9, 5, 2, 1, 1)
)
MAT <- matrix(inputData,