tabulateCovariateProfiles: Make table of covariate profiles with info for plotting

Description Usage Arguments

Description

Used by plotProfilesByCluster and plotCovariateProfiles

Usage

1
2
tabulateCovariateProfiles(riskProfObj, whichCovariates = NULL,
  rhoOrder = TRUE, useProfileStar = TRUE, rho_file = NULL)

Arguments

riskProfObj

Object of type riskProfObj, output of calcAvgRiskAndProfile.

whichCovariates

A vector of indices or a vector of strings corresponding to the covariates that are to be displayed.

rhoOrder

Should covariates be ordered in descending order of rho? If TRUE, the default, then indices given in whichCovariates will be interpreted as indices of the reordered covariates. Ignored silently if variable selection was not used.

useProfileStar

The definition of the star profile is given in Liverani, S., Hastie, D. I. and Richardson, S. (2013) PReMiuM: An R package for Bayesian profile regression. Ignored silently if variable selection was not used.

rho_file

Path to the rho.txt file written by profRegr. If NULL (the default), path is taken from the ClusObjRunInfoObj element of riskProfObj.


simisc/premiumPlots documentation built on Dec. 16, 2020, 1:35 p.m.