Extract the effective sample size, i.e. sample size minus the loss in degrees of freedom caused by the estimation of the parameters.
nobs2(object, ssc, ...)# S3 method for lvmfit
nobs2(object, ssc = lava.options()$ssc, ...)
# S3 method for lvmfit2
nobs2(object, ...)
Numeric vector of length the number of endogenous variables.
a lvmfit
or lvmfit2
object (i.e. output of lava::estimate
or lavaSearch2::estimate2
).
[character] method used to correct the small sample bias of the variance coefficients: no correction ("none"
/FALSE
/NA
),
correct the first order bias in the residual variance ("residual"
), or correct the first order bias in the estimated coefficients "cox"
).
Only relevant when using a lvmfit
object.
additional argument passed to estimate2
when using a lvmfit
object.
When argument object is a lvmfit
object, the method first calls estimate2
and then extract the leverage.
estimate2
to obtain lvmfit2
objects.