powered by
The function performs analysis of broken line regression.
bl(data, xlab="Explanatory Variable", ylab="Response Variable", position=1)
data is a data.frame
The first column should contain the treatments (explanatory variable) and the second column the response variable
name of explanatory variable
name of response variable
position of equation in the graph
top=1
bottomright=2
bottom=3
bottomleft=4
left=5
topleft=6 (default)
topright=7
right=8
center=9
Returns coefficients of the models, t test for coefficients, R squared, adjusted R squared, AIC and BIC, normality test and residuals.
lm, ea1(easyanova package), pr2, regplot
# NOT RUN { x=c(0.01, 0.02, 0.03, 0.04, 0.05, 0.06, 0.07, 0.08,0.09,0.10) y=c(5.5,4,3.2,2.1,1,0.1,1.6,2.2,3,5) y=y/100 data=data.frame(x,y) ### bl(data) # }
Run the code above in your browser using DataLab