corr.reg1 | R Documentation |
Correlation Analysis & Simple Linear Regression Analysis
corr.reg1(x, y, r0 = 0, xl, yl, mt, step = 1:4, x0, xrng, by, alp = 0.05, dig = 4)
x |
Vector of independent variable (explanatory variable) data |
y |
Vector of dependent variable (response variable) data |
r0 |
, Default: 0 |
xl |
Label of x-axis (default=x variable name) |
yl |
Label of y-axis (default=y variable name) |
mt |
Plot title |
step |
Steps of simple regression analysis, Default: 1:9 |
x0 |
Specipic poit value for confidence and prediction intervals |
xrng |
Range of x-axis |
by |
Plotting interavl of confidence and prediction bands |
alp |
Level of significance, Default: 0.05 |
dig |
Number of digits below the decimal point, Default: 4 |
None.
corr.reg1(iris[[3]], iris[[4]]) corr.reg1(iris[[3]], iris[[4]], step=6) corr.reg1(iris[[3]], iris[[4]], x0=3, step=11)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.