Create section assignment rules
section_rules.RdCreates rules for assigning parameters to named sections in the output table.
Rules are evaluated after name transformation, so you can match on the final
display name or use the preserved nonmem_name and user_name columns.
Available columns
The following columns are available for use in section rules:
nonmem_name- NONMEM identifier ("THETA1", "OMEGA(1,1)")user_name- User name from control file comments ("CL", "OM1")name- Display name (depends onparameter_namessetting)kind- Parameter type: "THETA", "OMEGA", or "SIGMA"diagonal- TRUE for diagonal matrix elements (variance), FALSE for off-diagonal (covariance)fixed- TRUE if parameter is fixed
Examples
section_rules(
grepl("~", user_name) ~ "Covariate Effects",
kind == "THETA" ~ "Structural Parameters",
kind == "OMEGA" & diagonal ~ "Between-Subject Variability",
kind == "SIGMA" ~ "Residual Variability"
)
#> <list_of<quosure>>
#>
#> [[1]]
#> <quosure>
#> expr: ^grepl("~", user_name) ~ "Covariate Effects"
#> env: 0x55a3ee353838
#>
#> [[2]]
#> <quosure>
#> expr: ^kind == "THETA" ~ "Structural Parameters"
#> env: 0x55a3ee353838
#>
#> [[3]]
#> <quosure>
#> expr: ^kind == "OMEGA" & diagonal ~ "Between-Subject Variability"
#> env: 0x55a3ee353838
#>
#> [[4]]
#> <quosure>
#> expr: ^kind == "SIGMA" ~ "Residual Variability"
#> env: 0x55a3ee353838
#>