| get_stats {anscombiser} | R Documentation |
Calculate Anscombe's summary statistics
Description
Calculates a particular set of summary statistics for a dataset.
Usage
get_stats(x)
Arguments
x |
a numeric matrix or data frame with at least 2 columns/variables. Each column contains observations on a different variable. Missing observations are not allowed. |
Value
A named list of summary statistics containing
-
nThe sample size. -
meansThe sample means of each variable. -
variancesThe sample means of each variable. -
correlationThe sample correlation matrix. -
intercepts,slopes,rsquaredMatrices whose (i,j)th entries are the estimated regression coefficients in a regression ofx[, i]onx[, j]and the resulting coefficient of determinationR^2.
Examples
get_stats(anscombe[, c(1, 5)])
[Package anscombiser version 1.1.0 Index]