pitakakariki / simr

Power Analysis of Generalised Linear Mixed Models by Simulation
70 stars 19 forks source link

Attach data to a model #123

Open pitakakariki opened 6 years ago

pitakakariki commented 6 years ago

Basically do a null "extend", and just copy the data to the newData attribute. Hopefully this is more robust to models being passed between functions?

pitakakariki commented 5 years ago

Make a unit test for this - example is somewhere in emails.

pitakakariki commented 5 years ago

Note that this is basically getData(fm) <- getData(fm). Could do this by default in all runs?

pitakakariki commented 2 years ago

Hopefully this would fix e.g. this: https://github.com/pitakakariki/simr/issues/39#issuecomment-996169458