% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/power_ttest.R
\name{power_t_two_sample}
\alias{power_t_two_sample}
\title{Compute Power for a Two-Sample t-Test (Equal Sample Sizes)}
\usage{
power_t_two_sample(d, n_per_group, alpha = 0.05, tails = "two", n2 = NULL)
}
\arguments{
\item{d}{Numeric. The effect size (Cohen's d).}

\item{n_per_group}{Integer. The sample size per group.}

\item{alpha}{Numeric. The significance level (default is 0.05).}

\item{tails}{Character. \code{"two"} for a two-tailed test or \code{"one"} for a one-tailed test.}

\item{n2}{Optional second-group sample size. If omitted, equal group sizes are used.}
}
\value{
Numeric. The computed power (1 - beta).
}
\description{
This function calculates the power for a two-sample t-test when the two groups have equal sample sizes.
}
\examples{
# Compute power for an effect size d = 0.5 with 30 subjects per group
power_t_two_sample(d = 0.5, n_per_group = 30)
}
