Given data for a single section of a submission, calculate that section's score based on multiplication of the clinical vs. preclinical factor, within- vs. across-species factor, section factor, partial beta weight, and score given by the reviewer (or average score across multiple reviewers).

calculate_section_score(data, lookup, score = 1, species = 1, clinical = 1)

Arguments

data

Data frame containing the section data. Should have columns `section`, `variable`, and `response` at a minimum.

lookup

Lookup table that contains the partial beta weights for applicable variables.

score

Average score given by reviewers.

species

Within-species (usually 0.67) or across-species (usually 0.33) multiplication factor. Not used for sections `basic`, `pk_in_silico` or `pk_in_vivo`.

clinical

Clinical (usually 0.67) or preclinical (usually 0.33) multiplication factor. Not used for sections `naming`, `basic`, `pk_in_silico` or `pk_in_vivo`.

Value

A numeric value indicating the score for the section