stabsel_thr: Tuning the probability threshold.

Description Usage Arguments Value

View source: R/stabsel_thr.R

Description

This function tune the probability threshold parameter.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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.


regsem documentation built on June 3, 2021, 5:09 p.m.