Learn R Programming

GPP (version 0.1)

writeMod: Writes Stan code for GPP model

Description

Returns string of Stan code that can be run to estimate the GPP.

Usage

writeMod(noise, ncov, printMod = FALSE)

Arguments

noise

The desired amount of artificial noise to add to the model.

ncov

The number of covariates to include in the model.

printMod

Boolean. Defaults FALSE. If TRUE, prints each model block to the console. See details.

Value

A string of Stan code that can be run with runMod

Details

We recommend keeping printMod as FALSE, otherwise, the function will write the model to the console for every model run on the convergence.

See Also

plotGPPfit runMod GPP autoConverge

Examples

Run this code
# NOT RUN {
writeMod(noise = 0.25, ncov = 2)
# }

Run the code above in your browser using DataLab