% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GRCFE.R
\name{eval_2fi_from_design}
\alias{eval_2fi_from_design}
\title{Evaluate unconfounded main effects and two-factor interactions}
\usage{
eval_2fi_from_design(design_df, s, tol = 1e-08)
}
\arguments{
\item{design_df}{Data frame with columns \code{Row}, \code{Col}, and treatment
factor columns.}

\item{s}{Integer. Number of levels per treatment factor.}

\item{tol}{Numeric tolerance for declaring cross-products to be zero.}
}
\value{
A list with components \code{main_ok}, a logical flag indicating
whether all main effects are unconfounded, and \code{unconf_2fi_num}, the
number of unconfounded two-factor interactions.
}
\description{
Checks whether treatment main effects are unconfounded with the remaining
model terms and counts the number of unconfounded two-factor interactions in
a row-column factorial design.
}
\examples{
res <- generate_2fi_rowcol(s = 3, p = 1, q = 1, n = 2)
ev <- eval_2fi_from_design(res$design, s = 3)
ev
stopifnot(is.logical(ev$main_ok), length(ev$main_ok) == 1)

}
