which.restricts: Tells which variable to eliminate to get more observations.

Description Usage Arguments Value Examples

View source: R/which.restricts.R

Description

This function helps you to decide which variable is restricting your analysis by having the highest number of missing values in the selected set.

Usage

1
which.restricts(predictors, outcome, db)

Arguments

predictors

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

outcome

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

db

The database on which we should perform the operations

Value

The table of non-missing observations after eliminating the variable to the left.

Examples

1
which.restricts(c("d_age","b_sex"),"ANAscore",data)

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