plotCovariateProfiles: Plot covariate profiles by covariate

Description Usage Arguments

Description

Plots the (discrete) covariate profiles, facetted by covariate, similar to the layout in plotRiskProfile.

Usage

1
2
3
plotCovariateProfiles(riskProfObj, whichCovariates = NULL,
  rhoOrder = TRUE, useProfileStar = TRUE, covariate_levels = NULL,
  covariate_labels = 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.

covariate_levels

Vector of integer values taken by the (discrete) covariates, specifying the order of the facets.

covariate_labels

Vector of strings giving labels for each level of the covariate, in the same order as covariate_levels.


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