calc_var_tot: Calculate the total variance

View source: R/calc_var_tot.R

calc_var_totR Documentation

Calculate the total variance

Description

Calculate the total variance

Usage

calc_var_tot(M, N, n_tilde, s2_within, s2_between)

Arguments

M

total sample size

N

number of classes j

n_tilde

function of the variance of n_N, M and N. See documentation and code of lsasim:::summary.lsasimcluster for details

s2_within

Within-class variance

s2_between

Between-class variance

References

Snijders, T. A. B., & Bosker, R. J. (1999). Multilevel Analysis. Sage Publications.

See Also

anova.lsasimcluster


tmatta/lsasim documentation built on Aug. 25, 2023, 5:50 p.m.