day_mean_relsd: Calculates the (person level) relative standard deviation of...

Description Usage Arguments

Description

This is a function that returns a dataframe in which the person-level relative standard deviation of the daily mean of any input variables has been calculated. Output variables will be named 'input_variable_day_mean_relsd'. Note carefully that this is -not- the mean of the relative standard deviations within each day. Rather, the mean at each day is taken, then the relative standard deviation of these means is calculated.

Usage

1
day_mean_relsd(data, variables, min, max, person_id, day_id)

Arguments

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.


seanchrismurphy/emacalc documentation built on May 12, 2019, 2:03 p.m.