predictAutoMAR: Extract predictions and MAR columns from autoMAR objects

Description Usage Arguments Value Examples

View source: R/predictMAR.R

Description

this function can be used for autoMAR objects to generate the variable for missing variable not completely at random

Usage

1
predictAutoMAR(x, data, mar_var = NULL)

Arguments

x

[autoMAR object | Required] autoMAR object for which prediction is desired

data

[data.frame | Required] prediction data set to prepare the autoMAR outcomes

mar_var

[character list | Optional] list of predefined mar variables

Value

flagged variables for missing not completely at random variable

Examples

1
2
3
4
5
6
7
## Missing at random features
train <- heart[1 : 199, ]
test <- heart[200 : 300, ]
marobj <- autoMAR (train, aucv = 0.9, strataname = NULL, stratasize = NULL, mar_method = "glm")

## print summary in console
testobj <- predictAutoMAR(marobj, test)

daya6489/DriveML documentation built on July 22, 2021, 4:21 a.m.