corr.reg1: Correlation & Simple Regression Analysis

View source: R/ch14-fn.R

corr.reg1R Documentation

Correlation & Simple Regression Analysis

Description

Correlation Analysis & Simple Linear Regression Analysis

Usage

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

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

adoocavo/Rstat_M1 documentation built on March 19, 2022, 3:34 a.m.