stan-dev / example-models

Example models for Stan
http://mc-stan.org/
771 stars 479 forks source link

DINA case study added #88

Closed sylee30 closed 7 years ago

sylee30 commented 7 years ago

The source for the DINA model case study

bob-carpenter commented 7 years ago

Required that I load:

I tried to run this and got

> render("dina_independent.Rmd")

processing file: dina_independent.Rmd
  |.                                                                |   2%
  |...                                                              |   4%
  |....                                                             |   6%
  |.....                                                            |   8%
  |.......                                                          |  10%
  |........                                                         |  12%
  |.........                                                        |  14%
  |...........                                                      |  16%
  |............                                                     |  18%
  |.............                                                    |  20%
  |...............                                                  |  22%
  |................                                                 |  24%
  |.................                                                |  27%
  |...................                                              |  29%
  |....................                                             |  31%
  |.....................                                            |  33%
  |.......................                                          |  35%
  |........................                                         |  37%
  |.........................                                        |  39%
  |...........................                                      |  41%
  |............................                                     |  43%
  |.............................                                    |  45%
  |...............................                                  |  47%
  |................................                                 |  49%
  |.................................                                |  51%
  |..................................                               |  53%
label: sim_plot_indep (with options) 
List of 4
 $ cache     : logi TRUE
 $ tidy      : logi TRUE
 $ fig.height: num 8
 $ fig.cap   : chr "Discrepancies between estimated and generating parameters for the simulation. Points indicate the difference between the poster"| __truncated__

Quitting from lines 269-296 (dina_independent.Rmd) 
Error in `[.data.frame`(sim_summary, wanted_pars, c("mean", "2.5%", "97.5%")) : 
  undefined columns selected

We need to make sure things run from a clean start of R.

bob-carpenter commented 7 years ago

Overall this looks great.

I couldn't run, but I'll comment on the generated HTML.

bob-carpenter commented 7 years ago

Anyway, if you can get it set up so I can run it end to end, I'll leave it up to you how much of the rest you want to update, then we can add it to the site. Sorry it took so long to get to this---the last two weeks have been rather busy here at Columbia.

bob-carpenter commented 7 years ago

@sylee30 : Is this ready to be added? Before we can merge something, we need a clear copyright statement along with an open-source license for the contributed code.

sylee30 commented 7 years ago

Sorry for the late response. I will send a request soon. Thanks!

On Wed, Apr 12, 2017 at 10:36 AM, Bob Carpenter notifications@github.com wrote:

@sylee30 https://github.com/sylee30 : Is this ready to be added? Before we can merge something, we need a clear copyright statement along with an open-source license for the contributed code.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/stan-dev/example-models/pull/88#issuecomment-293652769, or mute the thread https://github.com/notifications/unsubscribe-auth/AJNItCtGFgWBYAKK6U3QBiR3U2qYWkLcks5rvQuhgaJpZM4LrA7b .

sylee30 commented 7 years ago

DINA case study has been revised and should be working now.

bob-carpenter commented 7 years ago

I found where Michael stashed the case studies---under the path users/documentation; the link was OK, but that one didn't get moved.

On Jun 27, 2017, at 6:49 AM, Seung Yeon Lee notifications@github.com wrote:

DINA case study has been revised and should be working now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.