validate_drug_effects: Drug effects object validator + calculator

Description Usage Arguments Details

View source: R/medianeffect.R

Description

Internal validator + calculator function.

Usage

1

Arguments

x

drug_effects object

Details

Checks that doses are non-negative, fraction affected is between (0,1), equal length vector of at least two doses and effects, ratio positive (if present).

Also calculates log(D) and log(fa / (1-fa)), fits a linear model, and calculates b, m, Dm (median effect dose), and R^2 statistic (as well as R).

Returns the drug_effects object augmented with the additional calculated information.


jhchou/medianeffect documentation built on March 7, 2020, 12:56 a.m.