parameters: Print parameter estimates

Description Usage Arguments Value Author(s) Examples

View source: R/f_convenience_parameters.R

Description

This function will print a list of parameters of the model

Usage

1

Arguments

x

A psychonetrics model.

Value

Invisibly returns a data frame containing information on all parameters.

Author(s)

Sacha Epskamp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Load bfi data from psych package:
library("psychTools")
data(bfi)

# Also load dplyr for the pipe operator:
library("dplyr")

# Let's take the agreeableness items, and gender:
ConsData <- bfi %>% 
  select(A1:A5, gender) %>% 
  na.omit # Let's remove missingness (otherwise use Estimator = "FIML)

# Define variables:
vars <- names(ConsData)[1:5]

# Let's fit a full GGM:
mod <- ggm(ConsData, vars = vars, omega = "empty")

# Run model:
mod <- mod %>% runmodel

# Parameter estimates:
mod %>% parameters

psychonetrics documentation built on Oct. 26, 2021, 1:06 a.m.