Skip to content

Commit

Permalink
vpc: refcorr also for idvs with etas
Browse files Browse the repository at this point in the history
  • Loading branch information
rikardn committed Oct 10, 2024
1 parent 62654bd commit b5235c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/tool/npc.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,9 @@ sub modelfit_setup
$refmodel->_write();
push @refcorr_models, $refmodel;
}
if (is_var_defined_in_code($refmodel, $self->dv)) {
my $dv_code = is_var_defined_in_code($refmodel, $self->dv);
my $idv_code = is_var_defined_in_code($refmodel, $self->idv);
if ($dv_code || $idv_code) {
sub prepare_pred_model {
my $self = shift;
my $base_model = shift;
Expand Down Expand Up @@ -1676,7 +1678,7 @@ sub modelfit_setup
record_strings => ['(999) ONLYSIMULATION SUBPROBLEMS=1'],
problem_numbers => [($self->origprobnum())]);
$refpredmodel->set_records(type => 'table',
record_strings => [$self->dv, 'MDV', 'NOAPPEND', 'FILE=npctab.dta'],
record_strings => [$self->dv, $self->idv, 'MDV', 'NOAPPEND', 'FILE=npctab.dta'],
problem_numbers => [($self->origprobnum())]);
$refpredmodel->_write();
return $refpredmodel;
Expand Down
2 changes: 1 addition & 1 deletion pharmpy
Submodule pharmpy updated 216 files

0 comments on commit b5235c2

Please sign in to comment.