summaryParam {simsem}R Documentation

Provide summary of parameter estimates and standard error across replications

Description

This function will provide averages of parameter estimates, standard deviations of parameter estimates, averages of standard errors, and power of rejection with a priori alpha level for the null hypothesis of parameters equal 0.

Usage

summaryParam(object, alpha = 0.05, std = FALSE, detail = FALSE, 
    improper = TRUE, digits = NULL, matchParam = FALSE)

Arguments

object

SimResult object being described

alpha

The alpha level used to find the statistical power of each parameter estimate

std

If TRUE, (a) standardized coefficients and their standard errors substitute unstandardized coefficients, (b) standardized parameter values substitute parameter values, (c) confidence intervals of standardized coefficients are calculated using Wald confidence interval, and (d) all results (e.g., biases or coverage) are calculated based on standardized coefficients.

detail

If TRUE, more details about each parameter estimate are provided, such as relative bias, standardized bias, or relative standard error bias.

improper

If TRUE, include the replications that provided improper solutions

digits

The number of digits rounded in the result. If NULL, the results will not be rounded.

matchParam

If TRUE, only parameter estimates that have the same names as the parameter values will be reported. This argument is recommended when users know that the data-generation model and analysis model are the same. Then the comparison between the parameter estimates and parameter value will be valid.

Value

A data frame that provides the statistics described above from all parameters. For using with linkS4class{SimResult}, each column means

Author(s)

Sunthud Pornprasertmanit (psunthud@gmail.com)

References

Collins, L. M., Schafer, J. L., & Kam, C. M. (2001). A comparison of inclusive and restrictive strategies in modern missing data procedures. Psychological Methods, 6, 330-351.

Hoogland, J. J., & Boomsma, A. (1998). Robustness studies in covariance structure modeling. Sociological Methods & Research, 26, 329-367.

See Also

SimResult for the object input

Examples

showClass("SimResult")
loading <- matrix(0, 6, 1)
loading[1:6, 1] <- NA
LY <- bind(loading, 0.7)
RPS <- binds(diag(1))
RTE <- binds(diag(6))
CFA.Model <- model(LY = LY, RPS = RPS, RTE = RTE, modelType="CFA")

# We make the examples running only 5 replications to save time.
# In reality, more replications are needed.
Output <- sim(5, n=500, CFA.Model)

# Summary of the parameter estimates
summaryParam(Output)

# Summary of the parameter estimates with additional details
summaryParam(Output, detail=TRUE)

[Package simsem version 0.5-16 Index]