person_relsd: Calculates the relative standard deviation of variables at...

Description Usage Arguments

Description

This is a simple function that returns a dataframe in which the person-level relative standard deviation of any input variables has been calculated. Output variables will be named 'input_variable_relsd'

Usage

1
person_relsd(data, variables, person_id, min, max)

Arguments

data

The input dataset

variables

A character vector of input variables e.g. c('negemo', 'posemo').

person_id

The grouping variable to calculate your mean at - this should be your person id variable.


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