nwpri_matrix: Set a block of matrix for the NWPRI routine in NONMEM

View source: R/to_nwpri.R

nwpri_matrixR Documentation

Set a block of matrix for the NWPRI routine in NONMEM

Description

Set a block of matrix for the NWPRI routine in NONMEM

Usage

nwpri_matrix(x, blocktype)

Arguments

x

a symmetric matrix of numeric, typically the covariance matrix of theta or the estimates of omega/sigma.

blocktype

a character, either "THETAP", "OMEGAPD" or "SIGMAPD".

Value

a single character value to be pasted into the NONMEM code

Examples

x <- matrix(c(1, 0.12, 0.13, 0.12, 22, 0.23, 0.13, 0.23, 333), nrow = 3, ncol = 3)
nwpri_matrix(x = x, blocktype = "THETAPV")
nwpri_matrix(x = x, blocktype = "OMEGAP")

FelicienLL/uncrtnty documentation built on Oct. 26, 2023, 12:50 p.m.