getStep {lavaSearch2} | R Documentation |
Extract one Step From the Sequential Procedure
Description
Extract one step from the sequential procedure.
Usage
getStep(object, step, slot)
## S3 method for class 'modelsearch2'
getStep(object, step = nStep(object), slot = NULL)
Arguments
object |
a |
step |
[integer >0] which test should be extracted? |
slot |
[character] the element from the modelsearch2 object that should be extracted. |
Examples
## 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, method.p.adjust = "holm")
getStep(res)
getStep(res, slot = "sequenceTest")
getStep(res, step = 1)
## End(Not run)
[Package lavaSearch2 version 2.0.3 Index]