Description Usage Arguments Value See Also
View source: R/stan-conj-update.R
This takes training and test data, the names of the columns, and (optionally) the number of blocks to split the trials into, and stan parameters, and uses stan to draw samples from the prior beliefs that match the behavior.
1 2 |
df |
Data frame with adaptation data |
cue |
(Quoted) name of columns in training and test which have the cue values. |
category |
(Quoted) name of column in training data with the correct category labels. |
response |
(Quoted) name of column in test data with responses |
condition |
(Quoted) name of column with group identifiers |
ranefs |
(Quoted) name of column(s) with random effect grouping variables (like subject IDs). |
n_blocks |
Number of blocks to divide data into. |
test_df |
(optional) data frame with test data (all data is used as test by default). |
... |
Additional parameters are passed to |
A stanfit
object with the fitted stan model.
extract_prior_samples
to get a data frame of samples
from the prior belief parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.