Description Usage Arguments Value
View source: R/logisticRegression.R
This function takes in a training data set and performs a logistic regression
model to predict the stay probability as a function of whether the last trial
was rewarded or not, whether the last trial had a common or rare transition,
and the interaction between the two. This can be run by itself,
but is called by the function getLogPreds
.
1 |
data |
The data can either be the output of
|
This returns a tidymodels workflow object that has been fitted to predict the stay probability based on the reward and transition types.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.