get_scores_per_participant | R Documentation |
The function computes and returns the true score of the analysis to conduct for each participant, as specified by the 'f' and 'params' arguments.
get_scores_per_participant(
data,
idv = "id",
dv = "rt",
iv = "condition",
preprocessFs = c(),
preprocessArgs = c(),
params,
f
)
data |
the dataset of a all participants to analyze. |
idv |
The name of the participant identifier column. |
dv |
The names of the dependent variable(s) to apply the summary function (summary_function) to. |
iv |
Labels of an independent variable, indicating the different levels under which the dependent variable(s), 'dv', is expected to differ. For multiple dependent variables use a string list with the names of each dependent variable (e.g., c('dv1','dv2')), |
preprocessFs |
An ordered list of functions to apply to the dataset before starting with the analysis. The default value of the argument (empty list) will result in arrabging the dataset according to the independent variable, iv. |
preprocessArgs |
An ordered list of function arguments, to be used when invoking the 'preprocessFs' (in order, meaning preprocessFs[i](preprocessArgs[i]) will be invoked for each i). |
params |
Configuration for the function to apply to the data of each participant ('f'). |
f |
The function to apply to the data to compute the score of interest for each participant. |
The function returns a data frame, mapping the 'idv' column with a 'score' columns of the scores of each participant.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.