View source: R/f_convenience_parameters.R
parameters | R Documentation |
This function will print a list of parameters of the model
parameters(x)
x |
A |
Invisibly returns a data frame containing information on all parameters.
Sacha Epskamp
# 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 = "zero")
# Run model:
mod <- mod %>% runmodel
# Parameter estimates:
mod %>% parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.