Description Usage Arguments Details Value References See Also Examples
OLS regression estimates rates of change in conditional means. The permutation testing approaches are identical to those used for LAD regression, and are described in Kennedy and Cade (1996) and Anderson and Legendre (1999). The test statistic is similar in structure to that for LAD regression, except for OLS T_obs equals (sum of squared residuals for reduced parameter model - sum of squared residuals for full parameter model) / sum of squared residuals for full model.
1 2 |
formula |
an object of class |
data |
a data frame or object that can be coerced to one using |
contrasts |
an optional list see |
number.perms |
number of permutations used if a Monte Carlo resampling procedure is to be used. |
quant |
a numeric value which specifies a quantile for which all subsequent testing is done. |
test |
a logical indicating whether to test if all slope parameters are equal to zero. |
all.quants |
a logical indicating whether all possible quantile regression estimates should be returned. |
weights |
a vector of weights to be applied to the response and model frame matrix. |
Generally called indirectly via the lad
function call with the option OLS
set equal to TRUE
.
ols
returns an object of class LADObj
.
Anderson, M. J., and P. Legendre. 1999. An empirical comparison of permutation methods for tests of partial regression coefficients in a linear model. Journal Statistical Computation and Simulation 62, 271–303.
Kennedy, P.E., and B.S. Cade. 1996. Randomization tests for multiple regression. Communications in Statistics - Simulation and Computation 25, 923–936.
lad
and hypothesis.test
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.