neg.part {RegKink} | R Documentation |
negtive part of a variable
Description
This is a function computing the negtive part of a variable.
Usage
neg.part(x)
Arguments
x |
A vector of response. |
Value
ne |
The negative part of a variable. |
Examples
pt1 <- proc.time()
##Simulated data
set.seed(12345)
n=200
x = rnorm(n)
obj <- neg.part(x)
proc.time() - pt1
[Package RegKink version 0.1.0 Index]