Re: [R] Using linear formula inside MLE

2009-09-29 Thread Peter Dalgaard
Stephen Collins wrote: Say I have a formula Y ~ 1 + X, where X is a categorical variable. A previous thread showed how to evaluate this model using the mle package from stats4 (see below). But, the user had to create the data matrix, X, including the column of one's for the regression

[R] Using linear formula inside MLE

2009-09-28 Thread Stephen Collins
Say I have a formula Y ~ 1 + X, where X is a categorical variable. A previous thread showed how to evaluate this model using the mle package from stats4 (see below). But, the user had to create the data matrix, X, including the column of one's for the regression constant. Is there a way to