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