This is a function that returns a dataframe in which the person-level standard deviation of the daily minimums of any input variables has been calculated. Output variables will be named 'input_variable_day_min_sd'. Note carefully that this is -not- the min of the standard deviations within each day. Rather, the minimum at each day is taken, then the standard deviation of these minima is calculated.
1  | day_min_sd(data, variables, person_id, day_id)
 | 
data | 
 The input dataset  | 
variables | 
 A character vector of input variables e.g. c('negemo', 'posemo').  | 
person_id | 
 The person level grouping variable - this should be your person id variable.  | 
day_id | 
 The day level grouping variable - this should be your day id variable.  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.