[R] lm regression

Joshua Wiley jwiley.psych at gmail.com
Fri Nov 26 12:58:48 CET 2010


It probably means that somehow your data is stored incorrectly.  Try
using str(name of the dataframe) and see if everything is named what
you expect and is the class you think it is with equal numbers of



On Fri, Nov 26, 2010 at 3:39 AM, effeesse <scarpino86 at gmail.com> wrote:
> Hi! My regression is lm(Y ~ A + B + C + D + E + F + G), where each covariate
> "A--G" is of the kind "as.factor(column of the dataframe)".
> I receive an error for the first explanatory variable "A": Error in  column
> of the dataframe: wrong number of dimensions. What does it mean?
> --
> View this message in context: http://r.789695.n4.nabble.com/lm-regression-tp3060123p3060123.html
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> R-help at 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.

Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles

More information about the R-help mailing list