Skip to contents

Normal Probability (P-P) Plot.

Usage

ppPlot(model, type = NULL)

Arguments

model

The model object of a linear regression model fit using the lm() function.

type

The type of residuals used. One of:

  • "deviance"

  • "spearman"

  • "response"

  • "working"

  • "partial"

  • "score"; only available if fitting model with rms package

Value

Normal probability (P-P) plot.

Details

A normal probability (P-P) plot compares the empirical cumulative distribution to the theoretical cumulative distribution.

Examples

# Prepare Data
predictor1 <- rnorm(100)
predictor2 <- rnorm(100)
outcome <- rnorm(100)

# Fit Model
lmModel <- lm(outcome ~ predictor1 + predictor2)

# P-P Plot
ppPlot(lmModel)





Developmental Psychopathology Lab