CreateTransformedQQPlot: CreateTransformedQQPlot

Description Usage Arguments

View source: R/CreateTransformedQQPlot.R

Description

Uses the Box-Cox generated lambda to fit and display the QQ-plot for the newly fitted model. Note that a manual lambda is input.

Usage

1
2
3
4
5
6
7
8
9
CreateTransformedQQPlot(
  fit,
  iv,
  dv = "density",
  data,
  lambda = 0.9,
  dir = "./",
  save.plot = TRUE
)

Arguments

fit

lm object. Model fit to the data. No default.

iv

Character vector. Independent variables. No default.

dv

Character vector of length 1. Dependent variable. Defaults to "density"

data

data.frame. Data that the model was fit to. No default.

lambda

Numeric vector of length 1. Lambda to transform the dependent variable in fit. Default to 0.9.

dir

Character vector of lenght 1. Directory in which to store the plot. Ignored if save.plot is FALSE. Defaults to "."

save.plot

Logical vector of length 1. If TRUE then the plot is saved to disk. Defaults to TRUE


itslwg/regone documentation built on Oct. 14, 2021, 12:52 a.m.