[R] max length of a factor variable
bennose
ben at surveyengine.com
Fri May 17 17:18:10 CEST 2013
Technically this is correct for raw R functionality.
in practice various modules impose their own limits on variables so you have
to check.
For example the coxreg package truncates all variables to 16 characters.
for example the test below
> res
Call:
coxreg(formula = Surv(vtime, vstatus) ~
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz1_fx1 +
alt_const_fx1 + alt_const_fx2 + strata(vstrata), data = aggregate)
Covariate Mean Coef Rel.Risk S.E. Wald p
abcdefghijklmnop -0.000 NA NA 0.000 NA
alt_const_fx1 -0.045 0.132 1.141 0.044 0.002
alt_const_fx2 -0.024 0.011 1.011 0.045 0.801
--
View this message in context: http://r.789695.n4.nabble.com/max-length-of-a-factor-variable-tp2715509p4667332.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list