Learn R Programming

nonprobsampling (version 0.1.0)

assemble_output: Assemble the final output object

Description

Combines the pseudo-weighted estimates and naive (unweighted) estimates into a plain list to be returned by `pwmean()`.

Usage

assemble_output(build, est, naive, na_info)

Value

A list with components `method`, `estimates`, and `na.action`. The S3 class is assigned by the calling function `pwmean()`.

Arguments

build

A `pw_fit` object returned by the build step.

est

A list returned by `dispatch_estimator()`, with components `type`, `labels`, and `estimates`.

naive

A list returned by `naive_mean()`, with the same structure as `est`.

na_info

NA-handling information returned by `process_na_yz()`.