run_pdsearch#
- pharmpy.tools.run_pdsearch(input, type, treatment_variable=None, kpd_driver='ir', results=None, strictness='minimization_successful or (rounding_errors and sigdigs>=0.1)', parameter_uncertainty_method=None, **kwargs)#
Build a PD model
- Parameters:
input (Union[Path, str, Model]) – A PD/KPD dataset or PD/KPD model
type (str) – Type of PD model to build (‘pd’ or ‘kpd’)
treatment_variable (str) – Name of the variable representing the treatment, e.g. TRT, DOSE or AUC. Do not use if type is ‘kpd’
kpd_driver (str) – Driver for KPD model (virtual infusion rate ‘ir’ or ‘amount’)
results (ModelfitResults (optional)) – Results to input model
strictness (str) – Strictness criteria
parameter_uncertainty_method ({‘SANDWICH’, ‘SMAT’, ‘RMAT’, ‘EFIM’} or None) – Parameter uncertainty method. Will be used in ranking models if strictness includes parameter uncertaint
kwargs – Arguments to pass to tool
- Returns:
PDSearchResults – PDSearch tool results object.