# S3 method for class 'hstats_matrix'
dim(x)
A numeric vector of length two providing the number of rows and columns
of "M" object stored in x
.
fit <- lm(Sepal.Length ~ . + Petal.Width:Species, data = iris)
s <- hstats(fit, X = iris[-1])
#> 1-way calculations...
#>
|
| | 0%
|
|================== | 25%
|
|=================================== | 50%
|
|==================================================== | 75%
|
|======================================================================| 100%
#> 2-way calculations...
#>
|
| | 0%
|
|======================================================================| 100%
x <- h2_pairwise(s)
dim(x)
#> [1] 6 1
nrow(x)
#> [1] 6
ncol(x)
#> [1] 1