stabsel_thr {regsem}R Documentation

Tuning the probability threshold.

Description

This function tune the probability threshold parameter.

Usage

stabsel_thr(
  stabsel = NULL,
  data = NULL,
  model = NULL,
  est_model = NULL,
  prob = NULL,
  nm = NULL,
  pars.pen = NULL,
  from = 0.5,
  to = 1,
  jump = 0.01,
  method = "aic"
)

Arguments

stabsel

output object from stabsel function. If specified, data, model, est_model, prob, nm, and pars.pen parameters are not needed.

data

data frame

model

lavaan syntax model.

est_model

lavaan output object.

prob

matrix of selection probabilities.

nm

names(regsemOutput$coefficients).

pars.pen

a vector of numbers corresponding to paths to be removed (same sequence as regsemOutput$coefficients).

from

starting value of the threshold parameter.

to

end value of the threshold parameter.

jump

increment of the threshold parameter.

method

fit indices uesd to tune the parameter.

Value

rtn results using the optimal threshold.


[Package regsem version 1.9.5 Index]