lebebr01 / simglm

Simulate regression models
https://simglm.brandonlebeau.org/
Other
43 stars 12 forks source link

What is the reg_weights_model parameter? #78

Closed bwiernik closed 3 years ago

bwiernik commented 3 years ago

In the tidy simulation vignette, several examples include a reg_weights_model argument. It's not clear to me what this argument is? I see that reg_weights is the weights for the data generating process, but doesn't model_fit just estimate weights based on the simulated sample? What does the reg_weights_model argument do?

lebebr01 commented 3 years ago

The reg_weights_model argument allows for user specification of the regression coefficients to be compared to the empirical model fitted values. This allows users to specify these outside of those use for the data generation process. If this argument isn't specified, the simulation based regression coefficients are used, this is the default behavior and most common use case.