I should have said:

See also
?model.matrix

-- Bert

On Mon, Oct 31, 2011 at 9:00 AM, flokke <flokke@live.de> wrote:

> I know the lm() function, but I'd like to make my 'own' regression analysis
> by using matrix algebra.
> Thats why I wrote the function,
> but I dont know what values to pick to make it suitable for every dataset.
>
> If I pick a statistical model like lm(y~x) as input, the function would not
> know what objects it had to use
> for the matrix algebra.
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Function-input-for-regression-analysis-tp3955611p3956240.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@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.
>



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

	[[alternative HTML version deleted]]

