Description Usage Arguments Value Examples
Given two numeric vectors, computes a least-squares slope estimate for the model y = a + b*x + disturbance. lm() also returns this number, but beta.mm() is faster, which is advantageous for simulating bootstrapping or permutation testing.
1 | beta.mm(x, y)
|
x |
A numeric vector containing entries for the independent variable. |
y |
A numeric vector containing entries for the dependent variable, must be the same length as x. |
The least-squares slope estimate (i.e. the estimate of b) for the model y = a + b*x + disturbance.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.