Description Usage Arguments Value References See Also Examples
A function to calculate the power of the t-tests corresponding to tests on the intercept and slope coefficients in the simple linear regression model.
1 | power.b(x, y, alpha = 0.05, B0 = 0, B1 = 0)
|
x |
A vector of predictor values. Must be the same length as |
y |
A vector of response values. Must be the same length as |
alpha |
Significance level of the test. Default level is 0.05. |
B0 |
Null value for the test about the intercept. |
B1 |
Null value for the test about the slope. |
power.b
returns a matrix with the noncentrality parameters and power levels for the corresponding t-tests.
Young, D. S. (2017), Handbook of Regression Methods, CRC Press.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.