Extracts pseudo-weighted estimates from an object returned by
pwmean.
Usage
# S3 method for class 'pwmean'
coef(object, ...)Arguments
- object
An object of class
"pwmean"or"pwmean_factor"returned bypwmean.- ...
Additional arguments, currently unused.
Value
A named numeric vector of pseudo-weighted means for numeric outcomes, or category prevalence estimates for categorical outcomes.
Details
Values are taken from object$estimates$adjusted_mean, in row order.
For numeric outcomes, names are the domain labels, including
"Overall" when no domain variable was supplied.
For categorical outcomes, values estimate category prevalence.
Names combine the category and domain labels separated by " | ",
including "Overall" when no domain variable was supplied.
Objects of class "pwmean_factor" inherit this method.
Unweighted estimates remain available in object$estimates.
Participation model coefficients can be extracted from the original
"pw_fit" object using coef.pw_fit.