% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/statistics_reports.R
\name{sample_size_plan}
\alias{sample_size_plan}
\title{Sample-size and power planning helper}
\usage{
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
)
}
\arguments{
\item{type}{Planning target: \code{"proportion"}, \code{"mean"}, \code{"correlation"},
\code{"t_test"}, \code{"anova"}, \code{"regression"}, or \code{"sem"}.}

\item{margin_error}{Margin of error for mean/proportion planning.}

\item{sd}{Standard deviation for mean planning.}

\item{p}{Expected proportion.}

\item{r}{Expected correlation.}

\item{alpha}{Significance level.}

\item{power}{Desired power.}

\item{groups}{Number of groups for ANOVA/t-test planning.}

\item{predictors}{Number of predictors for regression planning.}
}
\value{
A list of planning estimates and warnings.
}
\description{
Sample-size and power planning helper
}
