Learn R Programming

hce

Simulate and analyze hierarchical composite endpoints

Download

You can install hce from CRAN:

install.packages("hce")

Copy Link

Version

Install

install.packages('hce')

Monthly Downloads

296

Version

0.9.0

License

MIT + file LICENSE

Maintainer

Samvel B. Gasparyan

Last Published

January 29th, 2026

Functions in hce (0.9.0)

deltaWO.adhce

Win odds calculation based on a threshold for adhce objects
calcWINS.data.frame

Win statistics calculation using a data frame
calcWINS.hce

Win statistics calculation for hce objects
as_hce.data.frame

Coerce a data frame to an hce object
calcWO.data.frame

Win odds calculation using a data frame
calcWO.formula

Win odds calculation using formula syntax
plot.hce_results

A print method for hce_results objects
hce

Helper function for hce objects
powerWO

Power calculation for the win odds test (no ties)
plot.hce

A plot method for hce objects
minWO

Minimum detectable or WO for alternative hypothesis for given power (no ties)
deltaWO

A generic function for calculating win odds based on a threshold
calcWO.hce

Win odds calculation for hce objects
print.hce_results

A print method for hce_results objects
regWO.formula

Win Odds Regression Using a Formula Syntax
sizeWO

Sample size calculation for the win odds test (no ties)
regWO

A generic function for win odds regression
simKHCE

Simulate a kidney disease hce dataset
simTTE

Simulate an adhce dataset with two correlated outcomes (illness - death model)
simHCE

Simulate an hce object
regWO.data.frame

Win Odds Regression Using a Data Frame
simORD

Simulate ordinal variables for two treatment groups using categorization of beta distributions
propWINS

Proportion of wins/losses/ties given the win odds and the win ratio
summaryWO

A generic function for summarizing win odds
stratWO.data.frame

Stratified win odds with adjustment
summaryWO.data.frame

Win odds summary for a data frame
summaryWO.adhce

Win odds summary for adhce objects
sizeWR

Sample size calculation for the win ratio test (with WR = 1 null hypothesis)
summaryWO.formula

Win odds summary using formula syntax
stratWO

A generic function for stratified win odds with adjustment
summaryWO.hce

Win odds summary for hce objects
ADSL

Baseline characteristics dataset of patients with kidney function assessments.
as_hce.default

Coerce a data frame to an hce object
calcWINS.formula

Win statistics calculation using formula syntax
calcWINS

A generic function for calculating win statistics
IWP

Calculates patient-level individual win proportions
calcWO

A generic function for calculating win odds
as_hce

A generic function for coercing data structures to hce objects
ADLB

Laboratory dataset for Glomerular Filtration Rate (GFR) measurements.
HCE3

HCE1, HCE2, HCE3, HCE4 datasets for 1000 patients with different treatment effects.
HCE2

HCE1, HCE2, HCE3, HCE4 datasets for 1000 patients with different treatment effects.
COVID19

COVID-19 ordinal scale dataset (full report).
HCE1

HCE1, HCE2, HCE3, HCE4 datasets for 1000 patients with different treatment effects.
COVID19b

COVID-19 ordinal scale dataset (preliminary report).
COVID19plus

COVID-19 ordinal scale dataset for a combination therapy.
ADET

Event-Time dataset for kidney outcomes.
KHCE

Kidney Hierarchical Composite Endpoint dataset.
HCE4

HCE1, HCE2, HCE3, HCE4 datasets for 1000 patients with different treatment effects.