cc.restrictor: Make complete cases data base for AIC analysis.

Description Usage Arguments Examples

View source: R/cc.restrictor.R

Description

This function makes a list with three values FORMULA, TRAIN data set and TEST data set. Very useful for regression modelling.

Usage

1
cc.restrictor(outcome, predictors, db, single.set = F)

Arguments

outcome

is the character string specifying the outcome variable. This variable has to be a part of the database (db)

predictors

Predictors are the known variables, based on which we want to conduct our predicting.

db

The database on which we should perform the operations

single.set

is a logical if TRUE then the function will provide only one training set, if FALSE if will return both training set and a test set.

Examples

1
complete.cases <- cc.restrictor("ANAscore",c("d_age","b_sex"),data)

wolass/anareg documentation built on May 4, 2019, 9:46 a.m.