## CRAN

# AHR 1.4.2

Estimation and Testing of Average Hazard Ratios

Released Aug 28, 2016 by Matthias Brueckner

### Dependencies

etm 0.6-2 survival 2.39-5 Rcpp MASS 7.3-45

Methods for estimation of multivariate average hazard ratios as defined by Kalbfleisch and Prentice. The underlying survival functions of the event of interest in each group can be estimated using either the (weighted) Kaplan-Meier estimator or the Aalen-Johansen estimator for the transition probabilities in Markov multi-state models. Right-censored and left-truncated data is supported. Moreover, the difference in restricted mean survival can be estimated.

## Installation

### Maven

This package can be included as a dependency from a Java or Scala project by including
the following your project's `pom.xml`

file.
Read more
about embedding Renjin in JVM-based projects.

<dependencies> <dependency> <groupId>org.renjin.cran</groupId> <artifactId>AHR</artifactId> <version>1.4.2-b8</version> </dependency> </dependencies> <repositories> <repository> <id>bedatadriven</id> <name>bedatadriven public repo</name> <url>https://nexus.bedatadriven.com/content/groups/public/</url> </repository> </repositories>

### Renjin CLI

If you're using Renjin from the command line, you load this library by invoking:

library('org.renjin.cran:AHR')

## Test Results

This package was last tested against Renjin 0.8.2359 on May 26, 2017.

- AHR-examples
- ahrAJ-examples
- ahrKM-examples
- ahrWKM-examples
- aj-examples
- avgHR-examples
- fastkm-examples
- rmeanDiff-examples
- rmeanDiff.ahr-examples
- testthat
- wkm.covariance_matrix_is_symmetric
- wkm.single_stratum_wkm_estimate_reduces_to_Kaplan-Meier_estimator
- wkmCompareQuantiles-examples
- wkmQuantile-examples