rcalinjageman / esci

Estimation Statistics with Confidence Intervals
https://rcalinjageman.github.io/esci/
18 stars 10 forks source link

UseMethod fails for estimateMeanDifference() #4

Closed LukasWallrich closed 1 year ago

LukasWallrich commented 4 years ago

I am just following your SIPS session, but the code does not run in my R. From estimate <- estimateMeanDifference(cdata, sex, d_art) I get

Error in UseMethod("estimateMeanDifference") : 
  no applicable method for 'estimateMeanDifference' applied to an object of class "data.frame"

Using esci:::estimateMeanDifference.default() works. I am using R 4.0.1.

Thanks for this wonderful work!

rcalinjageman commented 1 year ago

Sorry for a 3 year delay in responding!
I've now completely rewritten esci. The R package is here on github; the jamovi module is available in the jamovi module library (esci 1.01; you need at least jamovi 2.4 to install it). In the updated version, the relevant function is estimate_mdiff_two, and the order of inputs is now updated so that the command would become estimate_mdiff_two(cdata, d_art, sex) If still interested, let me know what you think!