pitakakariki / simr

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

print() of powerCurve with user-defined "level" is incorrect #196

Open tobiasrebholz opened 3 years ago

tobiasrebholz commented 3 years ago

Although the numerical output of a print() statement with deviations from default level (of confidence) on a powerCurve is correct, the verbal output is incorrect as it always reads "(95% confidence interval)", no matter of the chosen level.

E.g. print(my_powerCurve, level=0.9); seems to yield the correct 90% confidence intervals around all breaks, however, the verbal output still reads "(95% confidence interval)" while it should read "(90% confidence interval)".

pitakakariki commented 3 years ago

Thanks, will fix in the next version.