Learn R Programming

lavaSearch2 (version 2.0.3)

nobs2: Effective Sample Size.

Description

Extract the effective sample size, i.e. sample size minus the loss in degrees of freedom caused by the estimation of the parameters.

Usage

nobs2(object, ssc, ...)

# S3 method for lvmfit nobs2(object, ssc = lava.options()$ssc, ...)

# S3 method for lvmfit2 nobs2(object, ...)

Value

Numeric vector of length the number of endogenous variables.

Arguments

object

a lvmfit or lvmfit2 object (i.e. output of lava::estimate or lavaSearch2::estimate2).

ssc

[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.

Details

When argument object is a lvmfit object, the method first calls estimate2 and then extract the leverage.

See Also

estimate2 to obtain lvmfit2 objects.