View source: R/summary.simss.R
| summary.simss | R Documentation |
Generates a summary of the simulation results, including per-arm and total sample sizes. The printed summary also states the equivalence null and alternative hypotheses for the selected outcome and design.
## S3 method for class 'simss'
summary(object, ...)
object |
An object of class |
... |
Additional arguments (currently unused). |
Invisibly, a data frame containing the estimated sample size for each arm (or sequence), plus the total sample size. The printed report also includes the design, estimand, equivalence margins, target power, achieved power, and Monte Carlo interval. Count-outcome results use this same report and retain their count-specific fields in the returned object.
Johanna Muñoz johanna.munoz@fromdatatowisdom.com
## Not run:
res <- sampleSize(mu_list = list(T = c(y1 = 1), R = c(y1 = 1)),
sigma_list = list(T = c(y1 = .2), R = c(y1 = .2)),
list_comparator = list(c("T", "R")),
list_lequi.tol = list(c(y1 = .8)),
list_uequi.tol = list(c(y1 = 1.25)),
ctype = "ROM", distribution = "lnorm", nsim = 10,
lower = 2, upper = 4)
summary(res)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.