Description Usage Arguments See Also Examples
Given a brokenstick model and a set of points, the function determines on which stick the points are located.
1 | which.stick(object, pts, type = c("x", "i"))
|
object |
Object of class inheriting from " |
pts |
The set of the points to match aginst sticks. |
type |
The type of values provided in |
1 2 3 4 5 6 7 8 9 10 11 12 13 | data(exses)
dv <- tdrply(identity, 1:2, no = 100, obj = exses)[[1]]
bsm <- brokenstick(dv)
(pts <- sample(1:nrow(dv), 5))
which.stick(bsm, pts, type = 'i')
which.stick(bsm, dv[pts, 1], type = 'x')
## Not run:
# For the actual points of the model the result does not matter so much
# since both of previous and next segment are valid for prediction.
which.stick(bsm, bsm$pts, 'i')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.