apply.designmatprocess: Preprocessing Input Data

Description Usage Arguments Details Value Functions

View source: R/prepdesignmat.R

Description

Preprocessing Input Data

Usage

1
2
3
4
5
prep.designmatprocess(indata, fmla, version = 2, ...)

apply.designmatprocess(designmatprocess, indata)

unstandardise.designmatprocess(designmatprocess, indata)

Arguments

indata

Input dataframe to be processed.

fmla

A model formula (predictor side only).

designmatprocess

Are instructions for preprocessing input data, created by prep.designmatprocess()

stoponhighcorrelation

If TRUE the preparations for a design matrix will fail if correlations between covariates are higher than 0.75

data

Dataframe to be processed.

Details

The input data is turned into a design matrix using stats::model.matrix(). Each non-constant column is then centered and scaled.

Value

A special list containing parameters for applying a preprocessing step to data.

A design matrix.

The columns of indata before centering and scaling

Functions


sustainablefarms/linking-data documentation built on Oct. 28, 2020, 2:41 a.m.