prepareDF: Function prepareDF

prepareDFR Documentation

Function prepareDF

Description

Scales numeric data and dummy codes factors, omits outliers and missing values.

Usage

prepareDF(data, output = NULL, scale = T, out.omit = T, na.omit = T)

Arguments

data

data.frame containing data.

output

index or name of criterion in data.

out.omit

logical value, specifying whether outliers (scale(data)>3) shoud be set to NA.

na.omit

logical value, specifying whether NA shoud be omitted.

Examples

data=data.frame(y=rnorm(100),x1=rnorm(100),x2=rnorm(100));
prepareDF(data,"y1")

AndreasFischer1985/quantqual documentation built on June 20, 2022, 4:55 p.m.