popedMultipleEndpointParam | R Documentation |
This function populates a numeric vector with parameters and unique times and also populates the internal C++ global index
popedMultipleEndpointParam(p, times, modelSwitch, maxMT, optTime = TRUE)
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 |
This function first uses the input times and model switches to a global time indexer.
It then creates a new numeric vector
that combines the input parameters and unique times. If the
number of times is less than maxMT
, the remaining elements are
filled with the maximum time.
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.
Matthew L. Fidler
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.