View source: R/statistics_reports.R
| sample_size_plan | R Documentation |
Sample-size and power planning helper
sample_size_plan(
type = c("proportion", "mean", "correlation", "t_test", "anova", "regression", "sem"),
margin_error = NULL,
sd = NULL,
p = 0.5,
r = NULL,
alpha = 0.05,
power = 0.8,
groups = 2L,
predictors = NULL
)
type |
Planning target: |
margin_error |
Margin of error for mean/proportion planning. |
sd |
Standard deviation for mean planning. |
p |
Expected proportion. |
r |
Expected correlation. |
alpha |
Significance level. |
power |
Desired power. |
groups |
Number of groups for ANOVA/t-test planning. |
predictors |
Number of predictors for regression planning. |
A list of planning estimates and warnings.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.