Slope.1Regressor.Hypothesis: Simple Linear Regression - Hypothesis Test

Description Usage Arguments Value

Description

Performs a hypothesis test with 100(1-alpha) percent confidence for the slope of a simple linear regression model.

Usage

1
2
Slope.1Regressor.Hypothesis(form, data, beta_hypothesized, n,
  alternative = "two.sided", alpha = 0.05)

Arguments

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.

Value

The test statistic, p-value, and conclusion of the hypothesis.


AleksandrHovhannisyan/StatisticalInferencesInR documentation built on May 26, 2019, 6:38 a.m.