View source: R/regressionTools.R
fitLM | R Documentation |
wrapper around the lm() function to streamline it's use a bit
fitLM(fitTable, predictorColumn = 1, responseColumn = 2, weights = NULL)
fitTable |
data.frame containing the data to be fitted |
predictorColumn |
can be integer (column number) or character (column name) |
responseColumn |
can be integer (column number) or character (column name) |
weights |
default = NULL, otherwise must be integer to give weights to the predictor values (see also function weightsVector) or a numeric vector with length = number of rows in calibrationTable @returns fit object of type "lm" @export |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.