infotroph / efrhizo

data & analysis code for UIUC/EBI Energy Farm minirhizotron project
1 stars 1 forks source link

Sanity check wanted on model testing #1

Open infotroph opened 8 years ago

infotroph commented 8 years ago

Your mission

All of the scripts in the stan/ directory are fitting hierarchical Bayesian models to a ~15000-image minirhizotron dataset collected from four different bioenergy cropping systems. To test them, I want to run each model on synthetic data generated from known parameter values.

If you can help with this, please start by commenting on sim_mixdist.r and text_mix_tube_depth.r. All feedback from math corrections to nitpicky style suggestions are welcome, but especially:

The main quantity of interest is total standing root mass (eventually through time, but time is not yet implemented). There are 96 minirhizotron tubes in total (24 per crop), sampled ~monthly during the growing season from 2010 through 2014. The experiment is laid out in 4 blocks, but I assume here that variance between tubes overwhelms any block effect.

Needed for an effective simulation

infotroph commented 8 years ago

The above wall of text isn't very clear about which parts I'm soliciting help with and which are for me to fix. Looking for feedback on the existing versions of sim_mixdist.R and test_mix_tube_depth.R, anything else is gravy.

bpbond commented 8 years ago

sim_mixdist.R seems straightforward and clear. Two suggestions:

bpbond commented 8 years ago

I like the way you end test_mix_tube_depth.R with a sessionInfo() call - this is good documentation, particularly if the script's output is mirrored to a log file*. Consider also documenting, in the code, which version of rstan you're currently using.

* Shameless self-promotion: check out luzlogr.