Displaying 2 results from an estimated 2 matches for "missing_data".
2011 Mar 30
1
sampling design runs with no errors but returns empty data set
...ckage and other help requests.
There are no errors, but the data frame (weight_test) contains no
What am I missing?
Yours, Simon Kiss
P.S. The code is only reproducible if the data set is downloadable. I'm nt sure
ces<-read.spss(file.choose(), to.data.frame=TRUE, use.value.labels=FALSE)
missing_data<-subset(ces1, !is.na(ces08_NATWGT))
weight_test<-svydesign(id=~0, weights=~ces08_NATWGT, data=missing_data)
Note: this is some reproducible code that creates a data set that is a very stripped down version of what I'm working with, but with this, the surveydesign function appears to work...
2006 Feb 16
3
Sweave - problems with underscores in variable names...
...ults of my analyses embedded as
required.
I've encountered a bit of a problem though in the processing of the
resulting *.tex file that is as far as I can tell, down to the fact
that my variable names have underscores ('_') in their names.
The relevant section of code is....
<<missing_data,echo=false,results=tex>>=
## Lists observations with missing data
miss_1431 <- subset(gen, PPARG1.2_1431GA == "", select=
c(AAA_ID,PPARG1.2_1431GA))
xtable(miss_1431, caption="Missing data for PPARG1.2-1431GA")
miss_p12a <- subset(gen, PPARG2_P12A_CG == "",...