createNCARatio
[PKanalix] Create a ratio of NCA parameters across occasions.
To use this, the dataset must have occasions. The ratios of parameters are calculated for each individual, across occasions. The ratio corresponds to the parameter value for the test modality divided by the parameter value for the reference modality. If certain subjects have multiple values of the test or reference value (for example, one occasion of R drug and two occasions of T drug), then the arithmetic mean of values of the subject-occasion results is taken.
Usage
createNCARatio(name, variable, reference, test, parameter)
Arguments
- name
(character) Name of the new parameter defined as ratio of existing parameters.
- variable
(character) Occasion or categorical covariate column.
- reference
(character) Reference modality.
- test
(character) Test modality.
- parameter
(character) Name of the NCA parameter used in the ratio.
Examples
initializeLixoftConnectors("pkanalix")
loadProject(paste0(getDemoPath(),"/2.case_studies/project_Theo_extravasc_SD.pkx"))
createNCARatio(name="AUCratio", variable="FORM", reference = "ref", test = "test", parameter = "AUCINF_obs")