mrmp: MRmP - Multilevel Regression and Marginal Poststratification

Description Usage Arguments

Description

Creates subnational estimates based on the weighted frequence of each subgroup based on their joint probabilities

Usage

1
2
mrmp(survey_data, jointp_list, individualvars, groupingvars, response,
  survey_sample = NULL, weights = NULL)

Arguments

survey_data

A survey data frame

jointp_list

A data frame containg the weighted frequency of each strata

individualvars

variables used in mixed effects formula that will have random intercepts

groupingvars

variables used in mixed effects formula that serve as state-level grouping vars and do not have random intercepts

response

The response/outcome variable on which to regress

survey_sample

Total amount to sample from surve_data

weights

Weights to be used in the bglmer


jwyatt85/MRmP documentation built on May 20, 2019, 6:27 a.m.