stancsv2stantvafit | R Documentation |
This function may be used to read an RStan or CmdStan fit from CSV files. Note that you also need to provide the fitted model.
stancsv2stantvafit(csv_file, data, model, contrasts = list())
csv_file |
The CSV file to be read. |
data |
The data to which the model was fitted. |
model |
The fitted model as an StanTVA model or StanTVA code object. |
contrasts |
Any contrasts specified to factors in the data set. |
The StanTVA fit object.
data <- read_tva_data("data.dat")
model <- stantva_code(locations = 6)
fit <- stancsv2stantvafit("chain1.csv", data, model)
fit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.