View source: R/prepdesignmat.R
prep.designmatprocess | R Documentation |
Preprocessing Input Data
prep.designmatprocess(indata, fmla, version = 2, ...) apply.designmatprocess(designmatprocess, indata) unstandardise.designmatprocess(designmatprocess, indata)
indata |
Input dataframe to be processed. |
fmla |
A model formula (predictor side only). |
designmatprocess |
Are instructions for preprocessing input data, created by |
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. |
The input data is turned into a design matrix using stats::model.matrix()
.
Each non-constant column is then centered and scaled.
A special list containing parameters for applying a preprocessing step to data.
A design matrix.
The columns of indata before centering and scaling
prep.designmatprocess
: Calculates the parameters required to build a centred and scaled design matrix from input data.
apply.designmatprocess
: Builds a centred and scaled design matrix from input data.
unstandardise.designmatprocess
: Uncentres and unscales already standardised data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.