Calculate mean addressing item-level missing data using proration
1 2 |
data |
Wide dataframe. |
id_str |
String of identifier variable. |
var_str |
String of variable to calculate mean for. |
session_str |
String of session number. |
n_min |
Minimum number of available scores to calculate mean. |
item_scores |
Add item scores after mean. |
sep |
seperator for variable names. |
sort_mean_item |
Logical, if TRUE and multiple sessions then output dataframe will be organised mean_timepoint followed by all items for that timepoint, if FALSE all means will come after id variable followed by all items. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.