Description Usage Arguments Value
Performs a hypothesis test with 100(1-alpha) percent confidence for the slope of a simple linear regression model.
1 2 | Slope.1Regressor.Hypothesis(form, data, beta_hypothesized, n,
alternative = "two.sided", alpha = 0.05)
|
form |
expression representing the relationship between the variables contained in data (e.g., y ~ x). Variable names in this expression must match the column names of data. |
data |
data frame object containing the data. Columns must represent the predictor and response variables, in either order. |
beta_hypothesized |
the hypothesized value of the slope of the true linear model for the data, as specified by the null hypothesis. |
n |
the number of data points collected. |
alternative |
string denoting the form of the alternative hypothesis Acceptable values are "smaller" (<), "greater" (>), and "one.sided" (=/=). |
alpha |
the significance level. Set to 0.05 by default. |
The test statistic, p-value, and conclusion of the hypothesis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.