Returns a fit of the Stan model for all observations.
runMod(modText, dataBloc, unit, iter = 25000, filepath = NULL)
This is the string that contains your Stan code. Can be written with writeMod
.
This is the data that you pass to the Stan code. It is automatically generated when you run autoConverge
.
The unit of observation to project.
The number of iterations you would like to run. Defaults to 25,000.
Your preferred place to save the fit data. See Details.
The fit for the GPP counterfactual Stan model.
For iterations, check that your model converged (we recommend all r-hats close to 1 and examining traceplots).
We recommend creating a new folder for the file path since the Stan fit creates a large number of files at runtime.