View source: R/make_mystandata.R
make_mystandata | R Documentation |
aim: create data that can passed in to stan. Variables will be passed as subject x trial matrices. These matrices are padded with Inf value to have exactly the same number of trials despite missing values
make_mystandata(
data,
subject_column,
block_column,
var_toinclude,
var_tobenamed,
additional_arguments
)
data |
is your data frame |
subject_column |
|
block_column |
|
var_toinclude |
|
var_tobenamed |
|
Ntrials_per_subject |
|
## Not run:
stan_data=
make_mystandata(
data=df,
subject_column=df$subject,
block_column = df$block,
Ntrials_per_subject = 200,
var_toinclude = c("stay","ch_key","ch_card")
var_tobenamed = c("stay_card","chosen_key","chosen_card")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.