search for: sampledat

Displaying 3 results from an estimated 3 matches for "sampledat".

Did you mean: sampledata
2006 Aug 06
1
Take random sample from class variable
...t;,"no","yes","yes")) mydat # Maximal data from dataset max.size <- sum(mydat$size);max.size # I need sample random nof.sample <- 100 set.seed(123) sample.class <- sample(c("yes","no"), nof.sample, prob=c(.7, .3), replace=TRUE) sample.class sampledat.class <- mydat[sample.class,] sampledat.class
2006 Jun 20
2
expanded dataset and random number
Dear all R-users, (My apologies if this subject is wrong) I have dataset: mydat <- as.data.frame( matrix(c(14,0,1,0,1,1, 25,1,1,0,1,1, 5,0,0,1,1,0, 31,1,1,1,1,1, 10,0,0,0,0,1), nrow=5,ncol=6,byrow=TRUE)) dimnames(mydat)[[2]]
2012 Jul 20
1
FIML using lavaan returns zeroes for coefficients
...voc + moved.conf + local.noretired + retired + ds + ministrytime + hrswork + nomoralescore.c + negint.c + cong.conflict.c + nomoraleXjoin + nomoraleXleave + nomoraleXalways + negintXjoin + negintXleave + negintXalways + conflictXjoin + conflictXleave + conflictXalways ' mod1 = sem(pathmod, data=sampledat, missing="fiml", se="robust") At the time, the model ran fine. Now, using version 0.4-14, the model returns all 0's for coefficients. This does not happen, however, when I run the model using listwise deletion for missing data. Any idea what is happening, or how I can fi...