pos.part {RegKink} | R Documentation |
This is a function computing the positive part of a variable.
pos.part(x)
x |
A vector of response. |
ps |
The positive part of a variable. |
pt1 <- proc.time()
##Simulated data
set.seed(12345)
n=200
x = rnorm(n)
obj <- pos.part(x)
proc.time() - pt1