correlationPlot: Compute correlation of ELEs, and plot relevant heatmap...

Description Usage Arguments Value See Also

View source: R/functions_analysis.R

Description

Produces a heatmap displaying Pearson correlation between expected values (ELEs) by occupation. The heatmap is arranged according to SOC2 code, so that similar occupations are grouped together.

Usage

1
correlationPlot(blended.results, plot.dim = 6.5, print.plot = TRUE)

Arguments

blended.results

Blended predictions from imputation models, calculated at convergence iterations and blending proportions computed by computeBlendingRatio() (output of blendImputations())

plot.dim

Length of each side of the plot (in inches); default is 6.5

print.plot

Should plot file (.png) be generated; default is TRUE (create plot file)

Value

A list of length four, containing a data frame of expected values, a correlation matrix, and two plot objects (one where the individual occupations are labeled in addition to the SOC2 group labels, and one where they are not); optionally produces a PDF of the heatmap

See Also

blendImputations()

computeEVs()

stats::cor()


saharaja/imputeORS documentation built on Feb. 4, 2022, 12:27 a.m.