fitDF: creates a fit table data.frame with the columns...

View source: R/regressionTools.R

fitDFR Documentation

creates a fit table data.frame with the columns predictorColumn, ResponseColumn, Calculated Predictor, Recovery of predictor

Description

creates a fit table data.frame with the columns predictorColumn, ResponseColumn, Calculated Predictor, Recovery of predictor

Usage

fitDF(
  fitTable,
  predictorColumn = 1,
  responseColumn = 2,
  weights = NULL,
  fit = fitLM(fitTable, predictorColumn = predictorColumn, responseColumn =
    responseColumn, weights = weights),
  removeInf = TRUE
)

Arguments

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

Value

a data.frame witg columns: predictorColumn, ResponseColumn, Calculated Predictor, Recovery of predictor


BenBruyneel/BBPersonalR documentation built on Aug. 23, 2024, 8:28 p.m.