View source: R/modelsearch2-methods.R
| autplot-modelsearch2 | R Documentation | 
Display the value of a coefficient across the steps.
## S3 method for class 'modelsearch2'
autoplot(
  object,
  param,
  ci = TRUE,
  step = 0:nStep(object),
  conf.level = 0.95,
  plot = TRUE,
  add.0 = TRUE,
  ...
)
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.  | 
A list containing
plot: a ggplot object.
data: the data used to generate the ggplot object.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.