runMod {GPP} | R Documentation |
Runs the model, given the data and treated case (may be a placebo).
Description
Returns a fit of the Stan model for all observations.
Usage
runMod(modText, dataBloc, unit, iter = 25000, filepath = NULL)
Arguments
modText |
This is the string that contains your Stan code. Can be written with |
dataBloc |
This is the data that you pass to the Stan code. It is automatically generated when you run |
unit |
The unit of observation to project. |
iter |
The number of iterations you would like to run. Defaults to 25,000. |
filepath |
Your preferred place to save the fit data. See Details. |
Details
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.
Value
The fit for the GPP counterfactual Stan model.
Author(s)
Devin P. Brown devinpbrown96@gmail.com and David Carlson carlson.david@wustl.edu
See Also
plotGPPfit
writeMod
GPP
autoConverge