get_h_x {HQM} | R Documentation |
Future conditional hazard rate for all time values
Description
Calculates the future conditional hazard rate for a marker value x
and all possible time values.
Usage
get_h_x(data, marker_name, event_time_name = 'years',
time_name = 'year', event_name = 'status2', x, b)
Arguments
data |
A data frame of time dependent data points. Missing values are allowed. |
marker_name |
The column name of the marker values in the data frame |
event_time_name |
The column name of the event times in the data frame |
time_name |
The column name of the times the marker values were observed in the data frame |
event_name |
The column name of the events in the data frame |
x |
Numeric value of the last observed marker value. |
b |
Bandwidth. |
Details
The function h_xt
implements the future conditional hazard estimator
where is the marker,
is the exposure and
is the marker-only hazard, see
get_alpha
for more details.
Value
A vector of for a grid of possible time values
.
See Also
Examples
b = 10
x = 3
get_h_x(pbc2, 'serBilir', event_time_name = 'years',
time_name = 'year', event_name = 'status2', x, b)
[Package HQM version 0.1.0 Index]