Description Usage Arguments Details Value References See Also Examples

View source: R/hypothesis.test.r

Used for testing all slope parameters (full model) equal to zero or to test subsets of parameters (partial models) equal to zero by Monte Carlo resampling of the permutation distribution (Cade and Richards 1996) for LAD fitted objects including those fit using Least Absolute Deviation (LAD) regression, regression quantiles, and Ordinary Least Squares Regression (OLS).

1 2 | ```
hypothesis.test(object1, object2, number.perms = 5000, save.test = TRUE,
double.permutation = FALSE, rank.score = FALSE)
``` |

`object1` |
an object containing the results of a LAD model fit. |

`object2` |
an object containing the results of a LAD model fit. |

`number.perms` |
number of permutations used if a Monte Carlo resampling procedure is to be used. |

`save.test` |
is a logical indicating |

`double.permutation` |
is a logical indicating |

`rank.score` |
a logical value indicating if a quantile rank score test should be used. See details below. |

Type I errors of the regression quantile rank score test are less sensitive to heterogeneous error distributions because the statistic is based on the sign of the residuals from the reduced parameter null model and not their size. However, as Cade (2003) and Cade et al. (2005) make abundantly clear, valid Type I error rates often will require appropriate weighted estimates and test statistics.

`hypothesis.test`

returns an object of class `LADObj`

.

Cade, B.S., and J.D. Richards. 1996. Permutation tests for least absolute deviation regression. *Biometrics* **52**, 886–902.

Cade, B.S. 2003. Quantile regression models of animal habitat relationships. Ph.D dissertation Colorado State University, Fort Collins. 186pp.

Cade, B.S. 2005. Linear models: Permutation methods. Pages 1049–1054 in B. Everitt and D. Howell, eds. *Encyclopedia of Statistics in the Behavioral Science*. Vol. 2. John Wiley and Sons.

Cade, B.S., J.D. Richards, and P.W. Mielke, Jr. 2006. Rank score and permutation testing alternatives for regression quantile estimates. *Journal of Statistical Computation and Simulation* **76**, 331–355.

Cade, B.S., and J.D. Richards. 2006. A permutation test for quantile regression. *Journal of Agricultural, Biological, and Environmental Statistics* **11**, 106–126.

`lad`

, `LADObj`

`summary`

, and `pvalue`

.

1 2 3 4 5 6 7 8 9 | ```
Out <- lad(wtlnlctm~-1+wt+wtwidrat,data = lahontan,quant = .9)
Out1 <- lad(wtlnlctm~-1+wt,data = lahontan,quant = .9)
Out2 <- lad(wtlnlctm~-1+wtwidrat,data = lahontan,quant = .9)
Test.Out <- hypothesis.test(Out,Out1,double.permutation = TRUE)
summary(Test.Out)
Test.Out <- hypothesis.test(Out,Out2,double.permutation = TRUE)
summary(Test.Out)
``` |

Blossom documentation built on May 29, 2017, 10:55 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.