plotCMLE: Plot unconstrained and constrained proportional odds logit...

View source: R/plotCMLE.R

plotCMLER Documentation

Plot unconstrained and constrained proportional odds logit model

Description

Uses the results of function mdcp to produce a plot for the Maximum Likelihood Estimators of the parameters of both the unconstrained and constrained proportional odds logit models (UMLE and CMLE correspondingly). The UMLE includes confidence intervals. Parameter estimates of ordinal predictors are graphically linked with segments.

Usage

plotCMLE(
  mdcpResult = NULL,
  SignifLevel = 0.05,
  xposLegend = NULL,
  yposLegend = NULL,
  xcex.axis = 0.8,
  ycex.axis = 0.8,
  cexLegend = 1,
  methodName = "Not indicated"
)

Arguments

mdcpResult

An object of class list storing the results of function mdcp, which fits both the unconstrained and constrained proportional odds logit models.

SignifLevel

Significance level to be used when constructing the confidence intervals for each parameter of the unconstrained proportional odds logit model. Default value 0.05.

xposLegend

Position of legend on the x-axis. If xposLegend or yposLegend are not used, then the legend is located using topleft option.

yposLegend

Position of legend on the y-axis. If xposLegend or yposLegend are not used, then the legend is located using topleft option.

xcex.axis

Size of cex.axis for the x-axis. Default value is 0.8.

ycex.axis

Size of cex.axis for the y-axis. Default value is 0.8.

cexLegend

Size of legend text to be assigned to cex. Default value is 1.

methodName

Method name to be used in the main title of the plot.

Value

Plot.

See Also

monoTestBonf, monoTestConfReg, monoTestBonf, constrOptim.

Examples

# Ordinal predictors: EduLevel, IncQuint, Health,
# Overcrowd, and NumChildren
mdcpExample <- mdcp(QoL ~ EduLevel + Age + IncQuint + Gender + Health, data = crovData,
CLS1 = 0.95, TLBS2 = 0.90, TLNS2 = 0.99, StepSizeCLS2 = 0.0002)
plotCMLE(mdcpResult=mdcpExample,SignifLevel=0.05,xposLegend=14, yposLegend=4.8,
cexLegend=0.8, method="MDCS3")

crov documentation built on Aug. 25, 2023, 5:15 p.m.

Related to plotCMLE in crov...