NWPRI_df function

Add degrees of freedom by OMEGA/SIGMA block

Add degrees of freedom by OMEGA/SIGMA block

Calculate and add degrees of freedom to be used for simulation using the inverse Wishart distribution.

NWPRI_df(pars)

Arguments

  • pars: Parameters in long format, as returned by NMreadExt().

Returns

A data.table with DF2 added. See details.

Details

The degrees of freedom are calculated as DF = 2*((est2)/(se2)) + 1 -blocksize-1 DF2 is then adjusted to not be greater than the blocksize, and the minumum degrees of freedom observed in the block is applied to the full block. For fixed parameters, DF2 equals the blocksize.

References

inverse-Wishart degrees of freedom calculation for OMEGA and SIGMA: NONMEM tutorial part II, supplement 1, part C.

See Also

NMsim_NWPRI

  • Maintainer: Philip Delff
  • License: MIT + file LICENSE
  • Last published: 2025-03-13