Estimate the extent of etiologic heterogeneity

d()

Estimate the incremental explained risk variation in a case-control study

dstar()

Estimate the incremental explained risk variation in a case-only study

Test for etiologic heterogeneity

eh_test_subtype()

Test for etiologic heterogeneity of risk factors according to disease subtypes in a case-control study

eh_test_marker()

Test for etiologic heterogeneity of risk factors according to individual disease markers in a case-control study

Identify optimal D solution

optimal_kmeans_d()

Obtain optimal D solution based on k-means clustering of disease marker data in a case-control study

Obtain overall p-value for factor variable

posthoc_factor_test()

Post-hoc test to obtain overall p-value for a factor variable used in a eh_test_subtype fit.

Example Datasets

Simulated data to illustrate package use

subtype_data

Simulated subtype data