med_calculate: Med calculate

Description Usage Arguments Value

Description

This function will perform the calculations of the values for percent med free (on baseline days and therapy days), med response (daily and for every 30 days), percent med free response, med score, med number response (daily and for every 30 days), and med number score

Usage

1
med_calculate(x, n, l, baseline, therapy, patient, mrnumber, type, number)

Arguments

x

Med load table

n

Number that signifies which column number corresponse with the MED_NUMBER_DAY column

l

Number that signifies which column number corresponds with the MED_LOAD_DAY column

baseline

Subset of load table corresponding with baseline days

therapy

Subset of load table corresponding with therapy days

patient

Four-letter patient initials

mrnumber

Medical record number object

type

DAY_TYPE column object

number

MED_NUMBER_DAY/MED_LOAD_DAY data frame object

Value

med response/score calculations


borumlab/response documentation built on May 13, 2019, 12:36 a.m.