Population class for OSP snapshot populations
Population.RdAn R6 class that represents a population in an OSP snapshot. This class provides methods to access different properties of a population and display a summary of its information.
Active bindings
dataThe raw data of the population (read-only)
nameThe name of the population. Writable: must be a non-empty scalar string.
descriptionA free-text description of the population
source_populationThe source population name (read-only)
individual_nameThe individual name (read-only)
individualThe base individual the population samples from, returned as an Individual object built from the base individual in the population settings, or
NULLwhen none is set (read-only). Author it at construction time via theindividualargument ofcreate_population().seedThe seed used for population generation
number_of_individualsThe number of individuals in the population. Writable: must be a single positive whole number.
proportion_of_femalesThe percentage of females in the population
age_rangeThe age range for the population. Writable: the
Range'sunitmust be a valid unit for dimension"Age in years".weight_rangeThe weight range for the population. Writable: the
Range'sunitmust be a valid unit for dimension"Mass".height_rangeThe height range for the population. Writable: the
Range'sunitmust be a valid unit for dimension"Length".bmi_rangeThe BMI range for the population. Writable: when the
"BMI"dimension resolves in the installedospsuite, theRange'sunitmust be a valid unit for it; otherwise the unit is left unvalidated (a documented, opportunistic limitation).gestational_age_rangeThe gestational age range used for population generation. Writable: the
Range'sunitmust be a valid unit for dimension"Time".egfr_rangeThe eGFR range for the population (if available). Convenience over the case-insensitive
"egfr"entry ofdisease_state_parameters; writes persist into the population settings so they survive export.disease_state_parametersThe population disease-state parameters as a named list mapping each parameter name to a Range object. Assign a named list of
Rangeobjects to replace them, orNULLto clear them. This population-level name-to-Rangemap is distinct from the base individual's owndisease_state_parameters, which carries scalar parameter values.advanced_parametersAdvanced parameters for the population