selector: Bootstrap selection of most appropriate test statistic.

Description Usage Arguments Value

View source: R/selector_main.R

Description

This function takes a fitted lavaan object and bootstraps various test statistics. The test whose p-values are closest to a uniform distribution is selected.

Usage

1
selector(f, b.reps = 1000, seed = 1)

Arguments

f

Object obtained by fitting a model using sem() or cfa() in lavaan.

b.reps

Number of bootstrap samples. Defaults to 1000.

seed

A random seed. Defaults to 1.

Value

A plot of bootstrap p-values and the selected test statistic and its associated p-value


njaalf/selector documentation built on Nov. 4, 2019, 10:08 p.m.