pos.part: positive part of a variable

Description Usage Arguments Value Examples

View source: R/RegKink.R

Description

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

Usage

1

Arguments

x

A vector of response.

Value

ps

The positive 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 <- pos.part(x)

proc.time() - pt1

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

Related to pos.part in RegKink...