getTruth: Get the true value of the trend parameter for a given...

Description Usage Arguments Value

View source: R/functions.R

Description

Get the true value of the trend parameter for a given covariance weight matrix

Usage

1
getTruth(n = 1e+06, t0 = 6, Upsilon = diag(5), returnL = FALSE)

Arguments

n

Sample size (should be large to ensure numerical accuracy)

t0

Time to compute incidence

Upsilon

The covariance weighting matrix

returnL

Return the estimated log cumulative incidence ratios

Value

If returnL = FALSE, a vector of trend parameter estimates, the first corresponding to the "intercept" parameter, the second to the "slope" or trend parameter. If returnL = TRUE, then a list with named entries param (the projection parameters) and L, a vector of true values of L_j,0.


benkeser/sievetrend documentation built on May 14, 2019, 10:37 a.m.