Learn R Programming

lame (version 1.3.4)

nobs.ame: Number of observed dyads in an AME / LAME fit

Description

Number of finite (non-missing) cells in Y, summed over time slices for longitudinal fits. Useful as a denominator for sample-size reporting and as the basis for AIC/BIC if you also have a log-likelihood (which ame() / lame() do not directly expose; see logLik.ame).

Usage

# S3 method for ame
nobs(object, ...)

# S3 method for lame nobs(object, ...)

Value

Integer: number of observed dyads in Y.

Arguments

object

an ame or lame fit.

...

ignored.