View source: R/CategoricalAdjustment.r
create2CategoryPropensityArray | R Documentation |
Create a propensity array from a dataframe, for a variable with only 2 categories across multiple iterations.
create2CategoryPropensityArray(df)
df |
dataframe containing 1 column per iteration. This column represents the propensity to change from the 1st category to the 2nd category. |
propensity array with rows - the values for each individual micro-unit cols - propensity to change from the 1st category to the 2nd category. z dim - iterations/years
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.