Giter VIP home page Giter VIP logo

ctmle's People

Contributors

jucheng1992 avatar mengxinji avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ctmle's Issues

what is wrong with V=10?

Doesn't work for V=10

set.seed(10) 
x1= rbinom(N, 1, .3)
  x2= rbinom(N, 1, .5)
  x3= rbinom(N, 1, .7)
  x4 = rbinom(N, 1, .5)
  W = data.frame(x1,x2,x3,x4)
  head(W)
  A = rbinom(N, 1, plogis(.4+.3*x1-.4*x2+.5*x3-2*x4))
  Y = rbinom(N, 1, plogis(.4+.3*x1-.4*x2 + A))
  
  ctmleDiscrete(Y, A, W, Wg = W, Q = NULL, preOrder = FALSE, order = NULL,
                patience = FALSE, Qbounds = NULL, cvQinit = FALSE, Qform = NULL,
                SL.library = c("SL.glm"), alpha = 0.995, family = "binomial", gbound = 0.025,
                like_type = "RSS", fluctuation = "logistic", verbose = FALSE,
                detailed = FALSE, PEN = FALSE, V = 10, folds = NULL,
                stopFactor = 10^6)

yields
Error in if (nterms1[v] <= totalEst) { :
missing value where TRUE/FALSE needed

However, this works for V=5

x1= rbinom(N, 1, .3)
 x2= rbinom(N, 1, .5)
 x3= rbinom(N, 1, .7)
 x4 = rbinom(N, 1, .5)
 W = data.frame(x1,x2,x3,x4)
 head(W)
 A = rbinom(N, 1, plogis(.4+.3*x1-.4*x2+.5*x3-2*x4))
 Y = rbinom(N, 1, plogis(.4+.3*x1-.4*x2 + A))
 
 ctmleDiscrete(Y, A, W, Wg = W, Q = NULL, preOrder = FALSE, order = NULL,
               patience = FALSE, Qbounds = NULL, cvQinit = FALSE, Qform = NULL,
               SL.library = c("SL.glm"), alpha = 0.995, family = "binomial", gbound = 0.025,
               like_type = "RSS", fluctuation = "logistic", verbose = FALSE,
               detailed = FALSE, PEN = FALSE, V = 5, folds = NULL,
               stopFactor = 10^6)

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.