Learn R Programming

QualityMeasure (version 2.0.1)

plotEstimates: Plot estimates from regression model used for risk-adjustment

Description

This function creates a plot of model results

Usage

plotEstimates(model.performance)

Value

A ggplot figure

Arguments

model.performance

results from model_performance()

Author

Kenneth Nieser (nieser@stanford.edu)

Examples

Run this code
# Simulate data
df <- simulateData(n.entity = 100, n.obs = 80, mu = 0.2, r = 0.6, beta1 = log(1.6))

# Calculate risk-adjustment model performance
model.perf <- model_performance(df = df, model = 'y ~ x1 + (1|entity)')

# Plot estimated effects of predictors
plotEstimates(model.perf)


Run the code above in your browser using DataLab