NMsim_default: Transform an estimated Nonmem model into a simulation control...

View source: R/NMsim_default.R

NMsim_defaultR Documentation

Transform an estimated Nonmem model into a simulation control stream

Description

The default behaviour of NMsim. Replaces any $ESTIMATION and $COVARIANCE sections by a $SIMULATION section.

Usage

NMsim_default(
  file.sim,
  file.mod,
  data.sim,
  nsims = 1,
  replace.sim = TRUE,
  return.text = FALSE
)

Arguments

file.sim

See ?NMsim.

file.mod

See ?NMsim.

data.sim

See ?NMsim.

nsims

Number of replications wanted. The default is 1. If greater, multiple control streams will be generated.

replace.sim

If there is a $SIMULATION section in the contents of file.sim, should it be replaced? Default is yes. See the list.section argument to NMsim for how to provide custom contents to sections with NMsim instead of editing the control streams beforehand.

return.text

If TRUE, just the text will be returned, and resulting control stream is not written to file.

Value

Character vector of simulation control stream paths


NMsim documentation built on Nov. 2, 2024, 9:06 a.m.