tidy_up: Convert model output to tidy tibble/dataframe.

Description Usage Arguments Details Value See Also Examples

View source: R/tidying.R

Description

Currently this only tidies up PLS model objects. The main important output objects from the PLS model are:

Usage

1
tidy_up(model, output, ...)

Arguments

model

The model object.

output

Which output to choose from model.

...

Not currently used. For later method additions.

Details

Value

Tibble object with tidied model output. There are several output options:

See Also

See this website for more details on how to interpret the results of PLS.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(pls)
data(yarn)

NIR <- yarn$NIR
density <- yarn$density
model <- plsr(density ~ NIR)
tidy_up(model)
tidy_up(model, "loadings")
tidy_up(model, "scores")
tidy_up(model, "score_cor")
tidy_up(model, "explained_var")

mason documentation built on July 1, 2020, 5:48 p.m.