popedMultipleEndpointParam {babelmixr2}R Documentation

Populates Multiple Endpoint Parameters for internal solving

Description

This function populates a numeric vector with parameters and unique times and also populates the internal C++ global index

Usage

popedMultipleEndpointParam(p, times, modelSwitch, maxMT, optTime = TRUE)

Arguments

p

A numeric vector of parameters

times

A numeric vector of times

modelSwitch

An integer vector indicating model switches from PopED

maxMT

An integer specifying the maximum number of time points in the mtimes model

Details

Value

A numeric vector containing the parameters followed by unique times, if the maximum number of times is greater than the input this will append the maximum observed times in the input. This assumes the first parameter is the id and is dropped fro the output.

Author(s)

Matthew L. Fidler

Examples




p <- c(1.0, 2.0, 3.0)
times <- c(0.5, 1.5, 2.5)
modelSwitch <- c(1, 2, 3)
maxMT <- 5
popedMultipleEndpointParam(p, times, modelSwitch, maxMT)



[Package babelmixr2 version 0.1.7 Index]