Learn R Programming

LPWC (version 0.99.2)

weight: Weight in correlation

Description

This function computes the weight used for correlation using timepoints used and lags used

Usage

weight(t, lag, C)

Arguments

t

a vector of timepoints

lag

a integer value of the lag used

C

a numeric of the constant used in the penalty and weight inside the Gaussian kernel

Value

a list containing w0 and vector w used for computing weighted correlation

Examples

Run this code
# NOT RUN {
weight(t = c(0, 5, 10, 15, 20), lag = 1, C = 20)


# }

Run the code above in your browser using DataLab