htwt_check: Check for data entry errors in participant heights and...

Description Usage Arguments Details Value

View source: R/htwt_check.r

Description

This function generates a list containing a plot of particpant heights vs. weights; a data.frame of the most extreme height/weight observations; and a data.frame of participants missing height and/or weight.

Usage

1
htwt_check(cleanlist)

Arguments

cleanlist

The list of cleaned TO1 data generated by clean_to1

Details

This function generates a list with three elements:

  1. A plot (using ggplot2) of participant heights vs. weights, with the most extreme observations labeled with study IDs.

  2. A table of the most extreme observations.

  3. A table of participants missing either height or weight

"Most extreme" is currently defined by fitting a linear model (lm(log(Weight) ~ Height) and flagging participants whose weights fall outside the 99.9 prediction interval.

Value

A list containing three elements: plot, outlierdf, and missingdf, each corresponding to the elements listed above.


mmparker/to1check documentation built on May 23, 2019, 5:05 a.m.