sw_trend {NCC} | R Documentation |
Generation of stepwise trend with equal jumps between periods
Description
This function generates a stepwise trend for a given period. No time trend is assumed in the first period.
Usage
sw_trend(cj, lambda)
Arguments
cj |
Period indicator. |
lambda |
Strength of time trend. |
Details
The time trend is generated according to the function , where
is an index of the period patient
was enrolled in.
Value
Time trend in period .
Author(s)
Marta Bofill Roig, Pavla Krotka
[Package NCC version 1.0 Index]