Skip to content
Prev 202041 / 398503 Next

lm() notation question

On Nov 29, 2009, at 11:46 AM, Carl Witthoft wrote:

            
It doesn't say my matrix, it says as.matrix, and that is because  
freeny[iz] is most probably a dataframe.

The lm function is capable of doing manova when given a matrix on the  
LHS of the formula:

http://www.r-project.org/doc/Rnews/Rnews_2007-2.pdf   see page 2 and  
onward of Dalgaard's article.

Toward the end of the Details section of formula help page (easily  
accessed with a click from the lm help page) you will find the  
explanation for the  "~."
David Winsemius, MD
Heritage Laboratories
West Hartford, CT