inspect: Extract information from a simulation result

Description Arguments Details Value Author(s) See Also Examples

Description

Extract information from a simulation result

Arguments

object

The target SimResult object

what

The target component to be extracted. Please see details below.

improper

Specify whether to include the information from the replications with improper solutions

nonconverged

Specify whether to include the information from the nonconvergent replications

Details

Here are the list of information that can be specified in the what argument. The items starting with * are the information that the improper and nonconverged arguments are not applicable.

Value

The target information depending on the what argument

Author(s)

Sunthud Pornprasertmanit (psunthud@gmail.com)

See Also

SimResult for the object input

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
loading <- matrix(0, 6, 2)
loading[1:3, 1] <- NA
loading[4:6, 2] <- NA
LY <- bind(loading, 0.7)

latent.cor <- matrix(NA, 2, 2)
diag(latent.cor) <- 1
RPS <- binds(latent.cor, 0.5)

RTE <- binds(diag(6))

VY <- bind(rep(NA,6),2)

CFA.Model <- model(LY = LY, RPS = RPS, RTE = RTE, modelType = "CFA")

# In reality, more than 5 replications are needed.
Output <- sim(5, CFA.Model, n=200)
inspect(Output, "coef")
inspect(Output, "param")
inspect(Output, "se", improper = TRUE, nonconverged = TRUE)

## End(Not run)

simsem documentation built on March 29, 2021, 1:07 a.m.

Related to inspect in simsem...