J-PAL / bcstatsR

R version of the Stata command bcstats
MIT License
7 stars 6 forks source link

bcstats issue (merge error) #5

Closed ckrishanu closed 7 years ago

ckrishanu commented 7 years ago

Please see the following error

# Load bcstatsR
> library(bcstatsR)
> 
> # Load a toy example bundled with bcstatsR
> data(survey, bc)
> 
> # Compare the differences with bcstats
> compute.bc <- bcstats(surveydata = survey,
+                       bcdata     = bc,
+                       id         = "id",
+                       t1vars     = "gender",
+                       t2vars     = "gameresult",
+                       t3vars     = "itemssold",
+                       enumerator = "enum",
+                       ttest      = "itemssold")
Error in fix.by(by.y, y) : 'by' must specify a uniquely valid column
> 
> print(compute.bc$backcheck)
Error in print(compute.bc$backcheck) : object 'compute.bc' not found
> 
vikjam commented 7 years ago

Hi @ckrishanu, thanks for taking a look! I saw that bug this morning and fixed it my last commit. Try reinstalling to get the update.

detach('package:bcstatsR', unload = TRUE)
devtools::install_github('vikjam/bcstatsR')

If you're still experiencing the error. Please let me know!

ckrishanu commented 7 years ago

Hi @vikjam , the error is solved. I checked. Thanks. :-)

vikjam commented 7 years ago

Resolved in commit 3c9b980963dfb77e8b5dcd3fa8ee76f1a7680905.