Open pitakakariki opened 6 years ago
Binary factors should be a special case too, since one factor maps to one dummy, so either specification is probably fine.
This should probably have some clear documentation somewhere too.
"Couldn't automatically determine a default fixed effect for this model" https://github.com/pitakakariki/simr/issues/96
Make this error message clearer, and make it happen less often.
Same with "scope is not a subset of term labels" https://github.com/pitakakariki/simr/issues/93
Maybe don't use KR as default with large models? https://github.com/pitakakariki/simr/issues/179
Make it clear in the documentation which options apply in which case: entire covariate, single level, continuous. See https://github.com/pitakakariki/simr/issues/193
nb: "z", "t", and "sa" work for single level (but "t" and "sa" might be the same thing).
Also document which tests are supported for lmer vs glmer.
The
fixed
test can specify either a test of an entire factor covariate or just one of its dummy variables. If you specify one kind of test but give a fixef name for the other kind it just quietly runs through all the simulations producing unhelpful error messages, which are then quietly hidden in the error log.Stopgap is to be a bit noisier when errors are caught: https://github.com/pitakakariki/simr/issues/110
Better would be helpful messages telling the user why simr is confused.
Even better: if no method is specified, choose a default based on the fixef name supplied.