clear_weights_cache

clear_weights_cache()

Forget cached survey weights.

Empties the session’s cache of computed weight vectors. Weighting the same rows under the same scheme always gives the same numbers, so ezrsurvey works them out once and reuses them; a table crossing every question against every group would otherwise re-run the raking for each cell. The cache keys on the weighting columns’ own contents, so editing the data produces different weights without any action from you. clear_weights() clears it too.

Returns

Name Type Description
bool True.

See Also

set_weights, weight_vector

Examples

>>> clear_weights_cache()