neg.part: negtive part of a variable

Description Usage Arguments Value Examples

View source: R/RegKink.R

Description

This is a function computing the negtive part of a variable.

Usage

1

Arguments

x

A vector of response.

Value

ne

The negative part of a variable.

Examples

1
2
3
4
5
6
7
8
pt1 <- proc.time()
##Simulated data
set.seed(12345)
n=200
x = rnorm(n)
obj <- neg.part(x)

proc.time() - pt1

RegKink documentation built on April 15, 2021, 9:10 a.m.

Related to neg.part in RegKink...