Learn R Programming

ahw (version 0.1.0)

Calculates Continuous Time Likelihood Ratio Weights Assuming Multiplicative Intensity Models and Additive Hazard Models

Description

Estimates continuous time weights for performing causal survival analysis. For instance, weighted Nelson-Aalen or Kaplan-Meier estimates can be given a causal interpretation. See Ryalen, Stensrud, and Røysland (2019) and Ryalen (2019) for theory and examples.

Copy Link

Version

Install

install.packages('ahw')

Monthly Downloads

42

Version

0.1.0

License

GPL (>= 3)

Maintainer

Pål Christie Ryalen

Last Published

December 22nd, 2022

Functions in ahw (0.1.0)

plotContWeights

Plots mean and individual weight trajectories
Tmat

Tmat
addNoiseAtEventTimes

Tie removal
fr1

fr1
fFrame

fFrame
makeContWeights

Continuous time weight estimation based on aalen.predict
weightPredict

Continuous time weight estimation based on predict.aalen
naReplace

Replaces NA-values in vec with last non-NA value
refineTable

Expands data.table
ahw

Re-weighting Point Processes Based on Additive Hazard Models