Learn R Programming

ocp (version 0.1.1)

const_hazard: Constant hazard function

Description

Hazard function for use with gaussian underlying distribution.

Usage

const_hazard(r, lambda)

Arguments

r

The current R vector length.

lambda

The parameter for the hazard function.

Value

A vector of the hazard function for the length of the current R vector.

Examples

Run this code
# NOT RUN {
H<- const_hazard(10, 1/100)
# }

Run the code above in your browser using DataLab