compare_diff: Compare Differences

Description Usage Arguments Details Value Examples

Description

The purpose of this plot is to look for dramatic differences (which may indicate outliers) in the values of client-specific H-data values between the current and previous assessments.

Usage

1
compare_diff(diffdata, var, zero_prob, mean, binwidth)

Arguments

diffdata

dataframe created by calc_diffs

var

H-data variable of interest

zero_prob

(optional) The probability of the difference in the variable of interest being zero

mean

(optional) The mean of the absolute value of the non-zero part of the variable of interest. Note that for the waist circumference:weight ratio, the mean of the absolute value of the non-zero part is multiplied by 1,000

binwidth

(optional) The binwidth of the plot

Details

Simulates a comparison distribution and compares client-specific differences in H-data values between current and most previous assessment to the simulated distribution.

If optional variables are not specified, the function will use a reference value.

Value

Histogram of simulated differences with lines indicating actual differences in H-data.

Examples

1
compare_diff(diffdata, var, zero_prob, mean, binwidth)

sarahvanhala/nomscheck documentation built on May 11, 2019, 5:15 p.m.