coef.explore: Compute Regression Parameters for 'explore' Objects

Description Usage Arguments Value References Examples

View source: R/coef.estimate.R

Description

There is a direct correspondence between the inverse covariance matrix and multiple regression \insertCitekwan2014regression,Stephens1998BGGM. This readily allows for converting the GGM paramters to regression coefficients. All data types are supported.

Usage

1
2
## S3 method for class 'explore'
coef(object, iter = NULL, progress = TRUE, ...)

Arguments

object

An Object of class explore.

iter

Number of iterations (posterior samples; defaults to the number in the object).

progress

Logical. Should a progress bar be included (defaults to TRUE) ?

...

Currently ignored.

Value

An object of class coef, containting two lists.

References

\insertAllCited

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
# note: iter = 250 for demonstrative purposes

# data
Y <- ptsd[,1:4]

##########################
### example 1: ordinal ###
##########################

# fit model (note + 1, due to zeros)
fit <- explore(Y + 1,
               type = "ordinal",
               iter = 250,
               progress = FALSE)

# summarize the partial correlations
reg <- coef(fit, progress = FALSE)

# summary
summ <- summary(reg)

summ

BGGM documentation built on Aug. 20, 2021, 5:08 p.m.