print method for class "ilse" or class "fiml".

print(object)
  # S3 method for ilse
print(object)

  # S3 method for fiml
print(object)

Arguments

object

an object of class "ilse" or "fiml".

Value

For "ilse", print the basic information of ilse estimation and algorithm and return a list including

beta

a named vector of coefficients

Bmat

a named matrix that summary the estimated beta in every iteration.

residuals

the residuals, that is response minus fitted values.

fitted.values

the fitted mean values.

d.fn

a nonnegative value, vlaue of relative variation rate of objective function value

d.par

a nonnegative value, relative variation rate of estimated parametric vector when algorithm stopped.

K

a positive integer, iterative times in total.

For "fiml", print the basic information of fiml estimation and return a list including
beta

A named vector of coefficients

iterations

A positive integer, iterative times in total.

stop.code

The stop code returned by nlm.

See also

print.lm

Examples

data(nhanes) NAlm1 <- ilse(age~., data=nhanes) a <- print(NAlm1)
#> $beta #> (Intercept) bmi hyp chl #> 2.06942664 -0.11656313 0.62109971 0.01056364 #> #> $d.fn #> [1] 6.654795e-08 #> #> $d.par #> [1] 1.096466e-07 #> #> $iterations #> [1] 5 #>
a
#> $beta #> (Intercept) bmi hyp chl #> 2.06942664 -0.11656313 0.62109971 0.01056364 #> #> $d.fn #> [1] 6.654795e-08 #> #> $d.par #> [1] 1.096466e-07 #> #> $iterations #> [1] 5 #>
fimllm <- fimlreg(age~., data=nhanes, iterlim= 40) b <- print(fimllm)
#> $beta #> intercept bmi hyp chl #> 2.37216291 -0.13518966 0.46886921 0.01253721 #> #> $formula #> age ~ . #> <environment: 0x00000000136f73b0> #>
b
#> $beta #> intercept bmi hyp chl #> 2.37216291 -0.13518966 0.46886921 0.01253721 #> #> $formula #> age ~ . #> <environment: 0x00000000136f73b0> #>