% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/core-classes.R
\name{survey_taylor}
\alias{survey_taylor}
\title{Taylor Series Linearization Survey Design}
\usage{
survey_taylor(
  data = data.frame(),
  metadata = survey_metadata(),
  variables = list(),
  groups = character(0),
  call = NULL
)
}
\arguments{
\item{data}{A \code{data.frame} containing the survey data. Prefer
\code{\link[=as_survey]{as_survey()}} over calling this constructor directly.}

\item{metadata}{A \link{survey_metadata} object. Created automatically by
\code{\link[=as_survey]{as_survey()}}.}

\item{variables}{A named list of design specification (ids, weights,
strata, fpc, nest, probs_provided). Set automatically by \code{\link[=as_survey]{as_survey()}}.}

\item{groups}{Set by surveytidy's \code{group_by()}. Always \code{character(0)} in
standalone surveycore use.}

\item{call}{Language object capturing the construction call.}
}
\value{
A \code{survey_taylor} object.
}
\description{
A survey design object using Taylor series (linearization) for variance
estimation. Create with \code{\link[=as_survey]{as_survey()}}.
}
\section{Design variables (\verb{@variables})}{

\describe{
\item{\code{ids}}{Character vector of cluster ID column names, or \code{NULL}
for simple random sampling.}
\item{\code{weights}}{Character string naming the weight column.}
\item{\code{strata}}{Character string naming the strata column, or \code{NULL}.}
\item{\code{fpc}}{Character string naming the finite population correction
column, or \code{NULL}.}
\item{\code{nest}}{Logical. \code{TRUE} if cluster IDs are nested within strata
(i.e., the same ID value in two strata refers to two distinct PSUs).}
\item{\code{probs_provided}}{Logical. \code{TRUE} if the user supplied \code{probs}
rather than \code{weights} to \code{\link[=as_survey]{as_survey()}}.}
}
}

\examples{
# Prefer as_survey() over calling survey_taylor() directly
d <- as_survey(gss_2024, ids = vpsu, weights = wtssps,
               strata = vstrat, nest = TRUE)
class(d)

}
\seealso{
\code{\link[=as_survey]{as_survey()}} to create a \code{survey_taylor} object.

Other constructors: 
\code{\link{as_survey}()},
\code{\link{as_survey_nonprob}()},
\code{\link{as_survey_replicate}()},
\code{\link{as_survey_twophase}()},
\code{\link{survey_data}()},
\code{\link{survey_glm}()},
\code{\link{survey_glm_fit}()},
\code{\link{survey_nonprob}()},
\code{\link{survey_replicate}()},
\code{\link{survey_twophase}()}
}
\concept{constructors}
