optimal_s0 | R Documentation |
For a set of simulations that used multiple spike scale parameters this function selects the optimal model based on user-selected criteria and creates a new data frame of statistics for the optimal models. If desired, outputs summaries from the new data frame.
optimal_s0(
sim.data,
criteria,
tie.breaker = "min",
print.details = FALSE,
suppress.warnings = FALSE
)
sim.data |
A data frame containing simulation results. The data is
intended to be generated from stacking multiple |
criteria |
Specifies the criteria for model selection. Options are
|
tie.breaker |
This argument decides how to break ties when multiple
values of spike scale minimize |
print.details |
Logical. Determines whether to print periodic output. |
suppress.warnings |
Logical. When |
A data frame containing where each row is an optimal model from a set of models.
sdt <- data.frame(model = rep("mystery", 12),
s0 = rep(c(0.01, 0.02, 0.03), 4),
deviance = c(-0.17267380, -0.00398748, 0.49164019,
-0.19134208, 0.05202775, -0.76916548,
0.08757465, -0.73574828, -0.64348907,
-0.46910645, -0.56955834, -1.54488900))
optimal_s0(sdt, criteria = "deviance")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.