varIdent
varIdent is a variance function class used primarily in the R nlme package to model heteroscedasticity by allowing different residual variances for different levels of a grouping factor. It is one of several varFunc structures provided to flexibly describe how the variance of observations changes with covariates or groups when fitting linear mixed-effects (lme) or generalized least squares (gls) models.
The typical use is to specify varIdent(form = ~1 | group) as the weights argument in lme or
varIdent is useful when residual variability is not constant across strata but does not depend smoothly on