corr.reg1: Correlation & Simple Regression Analysis

Description Usage Arguments Value Examples

View source: R/ch14-fn.R

Description

Correlation Analysis & Simple Linear Regression Analysis

Usage

1
2
corr.reg1(x, y, r0 = 0, xl, yl, mt, step = 1:4, x0, xrng, by,
  alp = 0.05, dig = 4)

Arguments

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

Value

None.

Examples

1
2
3
corr.reg1(iris[[3]], iris[[4]])
corr.reg1(iris[[3]], iris[[4]], step=6)
corr.reg1(iris[[3]], iris[[4]], x0=3, step=11)

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.