Learn R Programming

ctsem (version 2.5.0)

ctStanParnames: ctStanParnames

Description

Gets internal stan parameter names of a ctStanFit object based on specified substrings.

Usage

ctStanParnames(x, substrings = c("hmean_", "hsd_"))

Arguments

x

ctStanFit object

substrings

vector of character strings, parameter names of the stan model containing any of these strings will be returned. Useful strings may be 'hmean_' for hyper (population) means, 'hsd_' for hyper standard deviations, 'tipred_' for time independent predictors, or specific combinations such as 'hmean_drift' for the population means of temporal dynamics parameters

Value

vector of character strings.

Examples

Run this code
# NOT RUN {
ctStanParnames(ctstantestfit,substrings=c('hmean_','hsd_'))
# }

Run the code above in your browser using DataLab