[R] Random Forest prediction all NA

2018-10-24 Thread Chen, Lang
Dear R user, I try randomForest and had an issue for the prediction. The training and test data from two separate csv file. However I end with all NA or prediction. Y is the continuouse variable, X variables are factors, continuous variables, variables with numeric 0/1 indication Y/N (not covert

[R] metafor all list elements must be square matrices

2018-10-24 Thread Crean, Hugh
This may be a very simple fix, but I am struggling to reproduce Becker's (1988) imputation of control group effect sizes for single group trials. For some reason that I cannot figure out, I am getting an "All list elements in 'V' must be square matrices". Below is my V matrix, which I believe

[R] R Linux Memory Limit error for calculating dissimilarity matrix with Gower distance

2018-10-24 Thread Aerenbkts bkts
Hi all, I am trying to cluster data file with 50K rows and 10 columns with R. Since data contains mixed data types (nominal, continuous etc.) I am using gower distance to create a dissimilarity matrix. But while I was creating the matrix, I got Error: cannot allocate vector of size 4.1 Gb error.

Re: [R] calculate the integral

2018-10-24 Thread Bert Gunter
Is this homework? This list has a no homework policy. Also, please stop posting in html. Bert Gunter On Wed, Oct 24, 2018 at 6:40 AM malika yassa via R-help < r-help@r-project.org> wrote: > helloplease can anyone help me, I find it difficult to calculate this > integrali have this > programmx<

[R] calculate the integral

2018-10-24 Thread malika yassa via R-help
helloplease can anyone help me, I find it difficult to calculate this integrali have this programmx<-rnorm(10,0,1)y<-rexp(10,2)z<-exp(10,3)s<-vector()for (  j in 1:10)s[j]<-x[j+1]+x[j]s1[i]<-s[j]/2f<-function(y,u){exp(y-u)}sapply(x, function(i){  z[j] integrate(f,lower=s1[j],upper=,s1[j+1] x=i)$

[R] calculate the integral

2018-10-24 Thread malika yassa via R-help
helloplease can anyone help me, I find it difficult to calculate this integrali have this programmx<-rnorm(10,0,1)y<-rexp(10,2)z<-exp(10,3)s<-vector()for (  j in 1:10)s[j]<-x[j+1]+x[j]s1[i]<-s[j]/2f<-function(y,u){exp(y-u)}sapply(x, function(i){  z[j] integrate(f,lower=s1[j],upper=,s1[j+1] x=i)$