Learn R Programming

lcc (version 3.2.2)

time_lcc: Regular Sequence Generator for Time Variable

Description

Generates a regular sequence for the time variable, including the unique values from the input time vector. This function is used internally to construct LCC, LPC, and LA curves and their simultaneous confidence intervals.

Usage

time_lcc(time, from, to, n)

Value

A numeric vector containing a regular sequence of time values, including the unique values from the input time vector.

Arguments

time

A numeric vector of unique time values.

from

The starting (minimum) value for the time sequence.

to

The ending (maximum) value for the time sequence.

n

Desired length of the sequence (integer). Typically, a value between 30 and 50 is adequate.

Examples

Run this code
data(hue)
attach(hue)
time_lcc(time = Time, from = min(Time), to = max(Time), n = 30)
detach(hue)

Run the code above in your browser using DataLab