autplot-modelsearch2 {lavaSearch2} | R Documentation |
Display the Value of a Coefficient across the Steps.
Description
Display the value of a coefficient across the steps.
Usage
## S3 method for class 'modelsearch2'
autoplot(
object,
param,
ci = TRUE,
step = 0:nStep(object),
conf.level = 0.95,
plot = TRUE,
add.0 = TRUE,
...
)
Arguments
object |
a |
param |
[character vector] the name of the coefficient(s) to be displayed. |
ci |
[logical] should the confidence intervals of the coefficient(s) be displayed. |
step |
[integer >0] the steps at which the coefficient value should be displayed. |
conf.level |
[numeric, 0-1] confidence level of the interval. |
plot |
[logical] should the graph be displayed? |
add.0 |
[logical] should an horizontal line representing no effect be displayed? |
... |
[internal] only used by the generic method. |
Value
A list containing
-
plot
: a ggplot object. -
data
: the data used to generate the ggplot object.
Examples
## Not run:
mSim <- lvm(Y~G+X1+X2+X3+X4+X5)
addvar(mSim) <- ~Z1+Z2
set.seed(10)
df.data <- lava::sim(mSim, 1e2)
mBase <- lvm(Y~G)
addvar(mBase) <- ~X1+X2+X3+X4+X5+Z1+Z2
e.lvm <- estimate(mBase, data = df.data)
res <- modelsearch2(e.lvm, method.p.adjust = "holm", alpha = 0.05)
autoplot(res, param = "Y~G")
autoplot(res, param = c("Y","Y~G"))
## End(Not run)
[Package lavaSearch2 version 2.0.3 Index]