View source: R/regressionTools.R
fitDF | R Documentation |
creates a fit table data.frame with the columns predictorColumn, ResponseColumn, Calculated Predictor, Recovery of predictor
fitDF(
fitTable,
predictorColumn = 1,
responseColumn = 2,
weights = NULL,
fit = fitLM(fitTable, predictorColumn = predictorColumn, responseColumn =
responseColumn, weights = weights),
removeInf = TRUE
)
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 |
fit |
model object (eg coming from lm() or fitLM()) |
removeInf |
Due to the nature of the calculations, the recovery sometimes results in +Inf or -Inf (infinite values). If this option is TRUE then these values are replaced by NA |
a data.frame witg columns: predictorColumn, ResponseColumn, Calculated Predictor, Recovery of predictor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.