newDataDF: creates a data.frame with the columns name, predictor,...

View source: R/regressionTools.R

newDataDFR Documentation

creates a data.frame with the columns name, predictor, calculated response, lower & upper levels for the prediction

Description

creates a data.frame with the columns name, predictor, calculated response, lower & upper levels for the prediction

Usage

newDataDF(
  fit,
  weight = NULL,
  sampleTable,
  nameColumn = 1,
  predictionColumn = 2,
  predictionLevel = 0.95
)

Arguments

fit

lm class object containg the fit info

weight

default = NULL, otherwise must be integer to give weights to the predictor values (see also function weightsVector)

sampleTable

data.frame containing the data to be used for prediction, must contain column with (sample-)names and a prediction/or column

nameColumn

can be integer (column number) or character (column name)

predictionColumn

can be integer (column number) or character (column name) indicates the predictor column

predictionLevel

default is 0.95, used for the prediction

Value

a data.frame

Note

use same weight as used for fit!


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