Description Usage Arguments Value Author(s) Examples
Calculates the mean square of X
.
1 |
X |
Numeric scalar, vector, list, matrix, or array. |
na.rm |
logical. Should missing values (including |
Mean square of X
.
Nathaniel E. Helwig <helwig@umn.edu>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ########## EXAMPLE 1 ##########
X <- 10
meansq(X)
########## EXAMPLE 2 ##########
X <- 1:10
meansq(X)
########## EXAMPLE 3 ##########
X <- matrix(1:10,5,2)
meansq(X)
########## EXAMPLE 4 ##########
X <- array(matrix(1:10,5,2),dim=c(5,2,2))
meansq(X)
########## EXAMPLE 5 ##########
X <- vector("list",5)
for(k in 1:5){ X[[k]] <- matrix(1:10,5,2) }
meansq(X)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.