Example dataset for testing analyses, and to see input structure
sub02
Objects of class tbl_df (inherits from tbl, data.frame) a minimal tibble for the nmmr
analysis (53856 x 7)
factor ID of subject
factor ID of session
factor ID of voxel
Factor with different values of contrast. Note that the factor must have the lower levels of contrast correspond to a lower integer representation (e.g., low == 1 and high == 2).
Orientation presented on trial, in radians (between \(\pm\pi\)). This is the tuning variable. Most functions require the numeric values, but some functions require only the factor levels (e.g., Deming$new() ).
beta values in given condition (corresponds to beta in betas2)
factor ID of session
a tibble
Where possible, the columns of this dataframe follow the BIDS
format. That is, sub
specifies participant, and run
is the run number
within session ses
.
The main functions of this package require data formatted analogously. At a
minimum, you will need a column indexing voxels (e.g., voxel
, in sub02
),
a column for the dependent variable (e.g., y
), a column indexing the stimulus
values for which voxels might be tuned (e.g., orientation
), and a column
indexing the experimental factor across which the tuning may be modulated
(e.g., contrast
). A column indexing participant (e.g., sub
) is required
for running the full hierarchical versions of the models. The other columns
(e.g., run
and ses
) are not always necessary, but they help keep the data
tidy and may also help with troubleshooting (e.g., voxel activity often differs
across sessions).
sub02#> # A tibble: 53,856 x 7 #> sub run voxel contrast orientation y ses #> <fct> <fct> <fct> <fct> <dbl> <dbl> <fct> #> 1 2 15 191852 low 0.785 3.36 3 #> 2 2 15 197706 low 0.785 -2.84 3 #> 3 2 15 197769 low 0.785 -2.03 3 #> 4 2 15 197842 low 0.785 2.23 3 #> 5 2 15 197906 low 0.785 2.86 3 #> 6 2 15 197907 low 0.785 1.51 3 #> 7 2 15 203688 low 0.785 -2.75 3 #> 8 2 15 203689 low 0.785 -2.51 3 #> 9 2 15 203690 low 0.785 -3.16 3 #> 10 2 15 203753 low 0.785 0.711 3 #> # … with 53,846 more rows