Skip to content
Prev 275980 / 398503 Next

Lm function: Error in model.frame.default

I don't know if you've gotten any follow up, but here are some quick reactions:

1) You make reference to the columns of y but your dput(y) does not
provide columns,

2) It's still not clear to me what all this data actually means? Do
you have multiple observations of the dependent variable corresponding
to each level of x? If so, a linear model probably isn't the best way
to approach the problem.

3) You give this code; d3 <- c(mean(rdiktator20), mean(rDiktator200),
mean(rDikt2000), mean(rDikt20000)) but you don't make any of that data
available to us.

If pressed, I'd guess that the reason this seems hard to do in R is
that it's not good statistical practice and that you should take a
moment to make sure it's really what you want to do given your data,
assuming I understood it properly above.

Michael
On Tue, Oct 25, 2011 at 2:22 PM, Julie <julie.novakova at gmail.com> wrote: