<Quark <at> gmx.at> writes: > > Dear R community, > > I would like to import data saved with Stata and then > run a Probit model using R. > > My data comes from the World Values Surveys and > in the Probit model I want to control for countries. > [snip]
[snip] Why don't you set convert.factors to TRUE and convert the particular values you are interested in into numeric labels after you import them into R? wvs1981 <- transform(wvs1981, v214=as.numeric(v214), v216=as.numeric(v216)) glm(v220bin ~ v214 + v216 + v2, ...) ? ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.