INLAutils icon indicating copy to clipboard operation
INLAutils copied to clipboard

Does Ntrials break autoplot?

Open timcdlucas opened this issue 7 years ago • 0 comments

  formula <- positive ~ x1 + x2
  
  
  xx = data.frame(x1 = rnorm(length(pointcases$examined)), x2 = rnorm(length(pointcases$examined)))
  inla_point_stack <- inla.stack(tag = 'est', 
                                 data = list(positive = pointcases$examined,
                                             examined = pointcases$examined),
                                 A = list(1), 
                                 effects = list(xx))
                                 
  
  inla.model <- inla(formula, 
                     family = 'binomial',
                     data = inla.stack.data(inla_point_stack),
                     Ntrials = examined
                     )

timcdlucas avatar Apr 04 '17 16:04 timcdlucas