Description Usage Arguments Details Value Author(s) See Also Examples
Creates a MarkedPointProcess
object from
data frame(s).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ## S4 method for signature 'data.frame,ContinuousProcess'
markedPointProcess(pointData,
continuousData, markVar = 'markType', coarsen = NULL, ...)
## S4 method for signature 'data.frame,data.frame'
markedPointProcess(pointData, continuousData, ...,
markVar = 'markType', coarsen = NULL)
## S4 method for signature 'data.frame,vector'
markedPointProcess(pointData, continuousData,
positionVar = 'time', idVar = 'id', markVar = 'markType', ...)
## S4 method for signature 'vector,data.frame'
markedPointProcess(pointData, continuousData,
positionVar = 'time', idVar = 'id', markVar = 'markType', ...)
## S4 method for signature 'vector,vector'
markedPointProcess(pointData, continuousData, ...)
## S4 method for signature 'data.frame'
markedPointProcess(pointData, positionVar = 'time',
idVar = 'id', markVar = 'markType', ...)
## S4 method for signature 'MarkedPointProcess'
markedPointProcess(pointData, ...)
|
pointData |
a |
continuousData |
a |
positionVar |
a |
idVar |
a |
markVar |
a |
coarsen |
a |
... |
further arguments passed to |
If the data frame pointData
lacks either of the markVar
or idVar
columns they are automatically generated. If
markVar
is missing it is assumed that there is only one type of marks. If
idVar
is missing it is assumed that there is only one unit.
If coarsen
is not NULL
the event points are coarsed to
the observation grid of the continuous process. Otherwise the
observation grid will be enlarged to include the event points and
continuous process data will be interpolated.
The constructor with signature ("data.frame", "data.frame") is a wrapper for
markedPointProcess(pointData, continuousProcess(continuousData, ...),
markVar = 'markType', ...)
.
An object of class MarkedPointProcess
.
Niels Richard Hansen, Niels.R.Hansen@math.ku.dk
MarkedPointProcess
,
ContinuousProcess
,
continuousProcess
.
1 2 3 4 5 | MPP <- data.frame(time = cumsum(rexp(18, 2)))
markedPointProcess(MPP)
CP <- data.frame(id = rep("A",10), time = seq(0.1, 10, 0.1), value = rnorm(100))
markedPointProcess(MPP, CP)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.