View source: R/wilcox_keselman.R
| wilcox_keselman | R Documentation | 
This function implements the nonparametric test of \insertCiteWilcox06;textualskedastic for testing for heteroskedasticity in a simple linear regression model, and extends it to the multiple linear regression model.
wilcox_keselman(
  mainlm,
  gammapar = 0.2,
  B = 500L,
  p.adjust.method = "none",
  seed = NA,
  rqwarn = FALSE,
  matchWRS = FALSE,
  statonly = FALSE
)
| mainlm | Either an object of  | 
| gammapar | A double value between 0 and 0.5 exclusive specifying the
quantile value  | 
| B | An integer specifying the number of nonparametric bootstrap samples
to use to estimate standard error(s) of the quantile difference(s).
Defaults to  | 
| p.adjust.method | A character specifying the family-wise error rate
method to use in adjusting  | 
| seed | An integer specifying a seed to pass to
 | 
| rqwarn | A logical specifying whether warnings generated by
 | 
| matchWRS | A logical specifying whether bootstrap samples should be
generated in the exact same manner as in the  | 
| statonly | A logical. If  | 
An object of class "htest". If object is
not assigned, its attributes are displayed in the console as a
tibble using tidy.
Rand R. Wilcox's package
WRS on Github; in particular
the functions qhomt and qhomtv2, which implement this
method for simple and multiple linear regression respectively.
mtcars_lm <- lm(mpg ~ wt + qsec + am, data = mtcars)
wilcox_keselman(mtcars_lm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.