search for: raply

Displaying 4 results from an estimated 4 matches for "raply".

Did you mean: rapply
2010 Oct 18
2
Randomly shuffle an array 1000 times
Dear List, I have a table i have read into R: Name Yes/No John 0 Frank 1 Ann 0 James 1 Alex 1 etc - 800 different times. What i want to do is shuffle yes/no and randomly re-assign them to the name. I have used sample() and permute(), however there is no way to do this 1000 times. Furthermore, i want to copy the data into a excel spreadsheet in the same order as the data was input so i can
2003 Feb 07
1
a question regarding s-plus libraries and R
...as already been transfered to R, while 3 others have not. For the matter of beeing more exact I''m interested in the dealing with missing survey data and Joe Shafer has the routines in S posted on his web site. Could you advise how I could get them to work in R? Thank you very much for the raply. Best regards Andrej _________ Andrej Kveder, M.A. researcher Institute of Medical Sciences SRS SASA; Novi trg 2, SI-1000 Ljubljana, Slovenia phone: +386 1 47 06 440 fax: +386 1 42 61 493 [[alternate HTML version deleted]]
2011 May 06
1
(no subject)
I'm using the survey api. I am taking 1000 samples of size of 100 and replacing 20 of those values with missing values. Im trying to use sequential hot deck imputation, and thus I am trying to figure out how to replace missing values with the value before it. Other things I have to keep in mind is if there are two missing values side by side, how do I replace both those values with the
2011 Jun 20
2
Error of Cross Validation
Dear R users: Recently, I tried to write a program to calculate cross-validated predicted value. My sources are as follows. However, the R reported an error. Could you please check the sources? Thanks. set.seed(100) x<-rnorm(100) y<-sample(rep(0:1,50),replace=T) dat<-data.frame(x,y) library(rms) fito<-lrm(y~x) preo<-predict(fito) pre<-matrix(NA,nrow=100,ncol=200) for (i in