wtn_sbj_c | R Documentation |
Centers a number of behaviours within-subjects by subtracting the subject's mean value from each observation value.
wtn_sbj_c(x, behaviours, subject_var)
x |
A data frame with different behaviours as different columns. |
behaviours |
Behaviours/variables to calculate mean and center within-subjects |
subject_var |
Unquoted name of subjects column in x |
A data frame with new columns with means and centered values for each behaviour.
van de Pol and Wright (2009). A simple method for distinguishing within- versus between-subject effects using mixed models.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.