Usage
baggedModel(modelFormulas,
data,
type=c("LM","LOGIT","COX"),
Outcome=NULL,
timeOutcome=NULL,
pvalue=0.05,
backElimination=FALSE,
frequencyThreshold=0.05,
removeOutliers=4.0
)
Arguments
modelFormulas
The name of the column in data
that stores the variable to be predicted by the model
data
A data frame with two columns. The first one must have the names of the candidate variables and the other one the description of such variables
type
Fit type: Logistic ("LOGIT"), linear ("LM"), or Cox proportional hazards ("COX")
Outcome
The name of the column in data
that stores the time to outcome
timeOutcome
The name of the column in data
that stores the time to event (needed only for a Cox proportional hazards regression model fitting)
pvalue
The elimination p-value)
backElimination
set it to TRUE if backelimination will be performed at each formula before bagging the coefficients)
frequencyThreshold
set the frequency the thresold of the frequence of features to be included in the model)
removeOutliers
The z value for removing outliers from data set)