print.path_coeff: Print an object of class path_coeff

print.path_coeffR Documentation

Print an object of class path_coeff

Description

Print an object generated by the function 'path_coeff()'. By default, the results are shown in the R console. The results can also be exported to the directory.

Usage

## S3 method for class 'path_coeff'
print(x, export = FALSE, file.name = NULL, digits = 4, ...)

Arguments

x

An object of class path_coeff or group_path.

export

A logical argument. If TRUE, a *.txt file is exported to the working directory

file.name

The name of the file if export = TRUE

digits

The significant digits to be shown.

...

Options used by the tibble package to format the output. See tibble::print() for more details.

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

Examples


library(metan)

# KW as dependent trait and all others as predictors
pcoeff <- path_coeff(data_ge2, resp = KW)
print(pcoeff)

# Call the algorithm for selecting a set of predictors
# With minimal multicollinearity (no VIF larger than 5)
pcoeff2 <- path_coeff(data_ge2,
                      resp = KW,
                      brutstep = TRUE,
                      maxvif = 5)
print(pcoeff2)


metan documentation built on March 7, 2023, 5:34 p.m.