[R] stata.get labels glm()
Ben Bolker
bbolker at gmail.com
Sun Feb 27 16:13:47 CET 2011
<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, ...)
?
More information about the R-help
mailing list