applyAllCatAdjustmentsToSimframe | R Documentation |

Apply categorical adjustments to simframe.

```
applyAllCatAdjustmentsToSimframe(
Simenv,
iteration,
propensities = NULL,
print_adj = TRUE,
cat.adjustments = Simenv$cat.adjustments
)
```

`Simenv` |
simenv receiving object. Simenv$simframe is modified. |

`iteration` |
iteration number - corresponds to a row number in the matrix elements of the cat.adjustments list |

`propensities` |
named list of propensities for the cat.adjustments |

`cat.adjustments` |
a list of categorical adjustment matrices whose rows each correpond to desired adjustments for an iteration. Each matrix has a 'varname' attribute, indicating which variable in the simenv object is to be adjusted. Each matrix may also have a 'logisetexpr' attribute - if so, this is evaluated and becomes a logical vector indicating which observations of the 'varname' variable to adjust (i.e. the "logisetexpr" attribute gives which subset of the data the row of adjustments are intended for). |

`printAdj` |
if TRUE will print new proportions of modified simframe vars |

NULL. simframe in receiving object is modified directly.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.