Learn R Programming

lavaSearch2 (version 1.0.0)

getNewLink: Find the Links that Should be Added Accroding to the Sequential Testing

Description

Find the links that should be added accroding to the sequential testing

Usage

getNewLink(object, ...)

# S3 method for modelsearch2 getNewLink(object, step = 1:nStep(object), ...)

Arguments

object

a modelsearch2 object

...

not used

step

which test should be extracted?

Examples

Run this code
# NOT RUN {
mSim <- lvm(Y~G+X1+X2)
addvar(mSim) <- ~Z1+Z2+Z3+Z4+Z5+Z6
df.data <- lava::sim(mSim, 1e2)

mBase <- lvm(Y~G)
addvar(mBase) <- ~X1+X2+Z1+Z2+Z3+Z4+Z5+Z6
e.lvm <- estimate(mBase, data = df.data)
res <- modelsearch2(e.lvm, statistic = "score", method.p.adjust = "holm")
getNewLink(res)

# }

Run the code above in your browser using DataLab