ps_index: Parameter Stability Index

Description Usage Arguments Author(s) Examples

Description

A function used to calculate fungible parameter estimates.

Usage

1
2
3
4
5
6
ps_index(model = NULL, data_set = NULL, group = NULL,
  RMSEA_pert = 0, meanstructure = NULL, genanneal_max_iters = 100,
  plot_fpe = FALSE, output_long = FALSE, frac_plot = 1,
  iterations_bin = 40000, suppress_message = FALSE,
  control_genSA = NULL, index_method = "rmsea", lower = -10,
  upper = 10, starting_val_MLE = FALSE, dev_options = NULL)

Arguments

model

user-specified SEM that using lavaan syntax.

data_set

data frame of measured variables.

RMSEA_pert

numeric. Defines the maximum size of the perturbation in data-model fit (in the scale of RMSEA). For example, a RMSEA_pert = .01 indicates that all estimates will be stored that have a RMSEA value within .01 RMSEA of the MLE RMSEA value.

genanneal_max_iters

integer. The maximum number of iterations of the simulated annealing algorithm.

plot_fpe

a logical value indicating whether FPEs should be graphed alongside the maximum likelihood estimates. Defaults to FALSE.

output_long

a logical value that indicates whether the FPEs and the MLE should be output in long data format. Defaults to FALSE

frac_plot

the fraction of FPEs that are graphed. Defaults to 1.

iterations_bin

numeric. Represents the maximum number of fungible estimates that can be stored. Defaults to 40,000

control_genSA

list. used to control the simulated annealing algorithm (see GenSA documentation)

index_method

Character. Specify the index used to calculate FPEs. Either RMSEA or AIC. Defaults to RMSEA

lower

Numeric. Lower bound of the parameter search space to be optimized over. Defaults to -10

upper

Numeric. Upper bound of the parameter search space to be optimized over. Defaults to 10

starting_val_MLE

a logical value indicating whether the MLEs should be used as starting values for the SA algorithm. Defaults to FALSE

dev_options

list. used to control special functions. not for regular usage.

Author(s)

Jordan Yee Prendez, jordanyeeprendez@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
model <- '
measurement model
ind60 =~ x1 + x2 + x3
dem60 =~ y1 + y2 + y3 + y4
dem65 =~ y5 + y6 + y7 + y8
# regressions
dem60 ~ ind60
dem65 ~ ind60 + dem60
# residual correlations
y1 ~~ y5
y2 ~~ y4 + y6
y3 ~~ y7
y4 ~~ y8
y6 ~~ y8
'
ps_index(model = model, data_set = PoliticalDemocracy,
        RMSEA_pert = .01,
        plot_fpe   = TRUE,
        index_method = "rmsea",
       frac_plot = .3, iterations_bin = 100000,
        control_genSA = list(maxit = 500))

## End(Not run)

nietsnel/psindex documentation built on June 22, 2019, 10:56 p.m.