Description Usage Arguments Value
This function takes in a dataframe of individual survey data, each row represents an individual. a dataframe of census constrain data and perform raking algorism to get the weights for each individual based on the census constrain
1 | getWeights(inds, cons, feat, tols = 0.0115)
|
inds |
a dataframe of individual survey data, in the form of indicator matrix, each row represent an individual |
cons |
a dataframe of census constrain data, each row is a different census region, each column represent a census category. |
feat |
a numerical vector representing the corresponding columns for each feature in the inds dataframe |
tols |
tolerence for the stopping point of the iteration of the raking algorism |
A dataframe weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.