Calls a specific transformation model function and then computes statistics
that is common across all transformations.
This function should not be called directly, please use lm2
.
lm2fit(data, transformation)
the preprocessed data frame from lm2
function,
so that the first two columns are the dependent variables and the other
two are independent variables
the transformation to be used, either 'euclidean'
or 'affine'
.
returns an object of class "lm2", see lm2
for the description.