R/sample_size_comp.R
summary.sample_size_comp.Rd
Summary method for the sample_size_comp function
# S3 method for sample_size_comp summary(object, ...)
object | Return value from |
---|---|
... | further arguments passed to or from other methods |
See https://radiant-rstats.github.io/docs/design/sample_size_comp.html for an example in Radiant
sample_size_comp
to generate the results
sample_size_comp( type = "proportion", p1 = 0.1, p2 = 0.15, conf_lev = 0.95, power = 0.8 ) %>% summary()#> Sample size calculation for comparison of proportions #> Sample size 1 : 681 #> Sample size 2 : 681 #> Total sample size: 1,362 #> Proportion 1 : 0.1 #> Proportion 2 : 0.15 #> Effect size : 0.1518977 #> Confidence level : 0.95 #> Power : 0.8 #> Alternative : two.sided #>