Open jasonchuanhe opened 7 years ago
This works:
mhglm(outcome ~ predictor + (1 | group), family=Gamma, data=df)
But this doesn't:
f = as.formula("outcome ~ predictor + (1 | group)") mhglm(f, family=Gamma, data=df)
The error is:
Error in mhglm(f, data = df, family = Gamma) : Invalid grouping factor specification, group In addition: Warning message: In Ops.factor(1, group) : ‘|’ not meaningful for factors
Thanks for reporting this. @kschmaus have you seen this before?
This works:
But this doesn't:
The error is: