reg.slpcomp: Comparison of several simple linear regression slopes
Description
Test for equality of slopes of several simple regression lines. The function returns the confidence interval of each slope and perfoms pairwise comparisons.
a formula of the form y ~ x | f, where y and x give the dependent and independent variable, respectively, and f is a factor giving levels to be compared.
data
an optional data frame containing the variables in the formula formula. By default the variables are taken from environment(formula).
conf.level
confidence level.
p.method
method for p-values correction. See help of p.adjust.
Value
data.namea character string giving the name(s) of the data.
conf.levelconfidence level.
coeffsslope of each regression line.
coeffs.tabslope and confidence interval of each regression line.