pitakakariki / simr

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

makeLmer will happily accept extra fixed effect parameters #225

Open pitakakariki opened 3 years ago

pitakakariki commented 3 years ago
makeLmer(y ~ x + (1|g), fixef=1:5, VarCorr=1, sigma=1, data=simdata)
Linear mixed model fit by REML ['lmerMod']
Formula: y ~ x + (1 | g)
   Data: simdata
REML criterion at convergence: 106.8809
Random effects:
 Groups   Name        Std.Dev.
 g        (Intercept) 1       
 Residual             1       
Number of obs: 30, groups:  g, 3
Fixed Effects:
(Intercept)            x         <NA>         <NA>         <NA>  
          1            2            3            4            5