Print the colindiag
object in two ways. By default, the results
are shown in the R console. The results can also be exported to the directory
into a *.txt file.
Usage
# S3 method for colindiag
print(x, export = FALSE, file.name = NULL, digits = 3, ...)
Arguments
- x
The object of class
colindiag
- 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
Tiago Olivoto tiagoolivoto@gmail.com
Examples
# \donttest{
library(metan)
col <- colindiag(data_ge2)
print(col)
#> Severe multicollinearity in the matrix! Pay attention on the variables listed bellow
#> CN = 10106.712
#> Matrix determinant: 0
#> Largest correlation: PH x EH = 0.932
#> Smallest correlation: ED x CDED = -0.01
#> Number of VIFs > 10: 11
#> Number of correlations with r >= |0.8|: 4
#> Variables with largest weight in the last eigenvalues:
#> CL > ED > CDED > CW > EH > KW > PERK > PH > EP > NKE > TKW > NR > CD > NKR > EL
# }