Giter Club home page Giter Club logo

bcstatsr's People

Contributors

jamesdunham avatar vikjam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bcstatsr's Issues

Missing Values

Consider the following cases of missing data

  1. Back data is missing and the survey data is not.
  2. Survey data is missing and the back data is not.
  3. Survey data and back data is missing.

Each one of these cases will return a NA when evaluated instead of a TRUE or FALSE.

can't find `ttest` element referenced in example code

Hi, I'm stepping through the example code and don't see a ttest element in the list of results.

library(bcstatsR)

data(survey)
data(bc)

result <- bcstats(surveydata  = survey,
                  bcdata      = bc,
                  id          = "id",
                  t1vars      = "gender",
                  t2vars      = "gameresult",
                  t3vars      = "itemssold",
                  enumerator  = "enum",
                  enumteam    = "enumteam",
                  backchecker = "bcer")

result[["ttest"]]
# NULL
str(result, 1)
# List of 7
#  $ backcheck   :'data.frame':	26 obs. of  8 variables:
#  $ enum1       :List of 2
#  $ enum2       :List of 2
#  $ enumteam1   :List of 2
#  $ enumteam2   :List of 2
#  $ backchecker1:List of 2
#  $ backchecker2:List of 2
# NULL
m stepping through the example code and don't see a 'ttest' element in the list of results.

library(bcstatsR)

data(survey)
data(bc)

result <- bcstats(surveydata  = survey,
                  bcdata      = bc,
                  id          = "id",
                  t1vars      = "gender",
                  t2vars      = "gameresult",
                  t3vars      = "itemssold",
                  enumerator  = "enum",
                  enumteam    = "enumteam",
                  backchecker = "bcer")

result[["ttest"]]
# NULL

I'm not sure what precisely the expected output is -- I haven't looked into the code yet.

My result object looks like:

str(result, 1)
# List of 7
#  $ backcheck   :'data.frame':	26 obs. of  8 variables:
#  $ enum1       :List of 2
#  $ enum2       :List of 2
#  $ enumteam1   :List of 2
#  $ enumteam2   :List of 2
#  $ backchecker1:List of 2
#  $ backchecker2:List of 2
# NULL

Thanks!

Factors

How should factors be handled? For example, if the survey data uses different factors for a variable than the back check, then the comparison will be messed up. Should they just be coerced to a string?

bcstats issue (merge error)

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
> 

Adding multiple variables

@vikjam
Is there a way to add multiple Type 1/2/3 variables? In the examples I only see 1 variable for each, and I'm not sure what other type of object "t1vars" would take than individual variable names.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.