Learn R Programming

mrgsolve (version 0.8.12)

data_qsim: Create a matrix of events and observations for simulation

Description

This function is to be used with qsim only.

Usage

data_qsim(e, times)

Arguments

e

an event object

times

numeric vector of observation times or a tgrid object

Value

A numeric matrix with at minimum columns of time, cmt, evid, amt, rate.

Examples

Run this code
# NOT RUN {
e <- ev(amt = 100, ii = 12, addl = 2, rate = 50)

times <- tgrid(end = 240, delta = 6)

data_qsim(e, times)


# }

Run the code above in your browser using DataLab