RISKSET_cpp: Compute the risk set for a recurrence process within...

Description Usage Arguments Details Value

Description

We want the number of units at risk just before each event time it is also possible to send down a longer list of times for purposes of making a riskset plot.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
RISKSET(
  muniqrecurr,
  tuniq,
  nwindows,
  twindowsl,
  twindowsu,
  wcounts,
  iordl,
  iordu,
  delta,
  kdebug,
  iscrat
)

Arguments

muniqrecurr

number of unique recurrence times

tuniq

length(muniqrecurr) unique recurrence times (in increasing order);

nwindows

length of twindowsl and twindowsu;

twindowsl

vector giving observation window start points

twindowsu

window end points corresponding to twindowsl

wcounts

counts for the windows;

iordl

scratch space ordering vector for twindowsl;

iordu

scratch ordering vector for twindowsu;

Details

Wrapper for wqm_riskset

Value

delta length(muniqrecurr) size of the risk set just before time tuniq(j)


Auburngrads/SMRD documentation built on Sept. 14, 2020, 2:21 a.m.