Get Model Terms to Map
get_ModelTermsToMap.Rd
This function retrieves the model terms that can be mapped from a set of PML models.
Value
A list with two elements: "Required" and "Optional," representing the model terms that can be mapped.
Examples
# Load your PMLModels object
PMLParametersSets <-
create_ModelPK(
Absorption = c("First-Order", "Weibull"),
CObs = Observation(
ObservationName = "CObs",
BQL = TRUE),
A1 = Dosepoint(
DosepointName = "A1",
rate = StParm(StParmName = "Rate")),
Weight = Covariate(
Name = "Weight",
Center = "Median")
)
# Get the model terms to map
terms_to_map <- get_ModelTermsToMap(PMLParametersSets)
#> For the mapping purposes, dosing Terms Aa, A1 could be substituted to `AMT`.
print(terms_to_map$Required)
#> [1] "id" "time" "Weight" "Aa" "A1" "CObs"
print(terms_to_map$Optional)
#> [1] "Aa_Duration" "Aa_Rate" "CObsBQL"