corr.reg1: Correlation & Simple Regression Analysis

Description Usage Arguments Value Examples

View source: R/corr.reg1.R

Description

Correlation Analysis & Simple Linear Regression Analysis

Usage

1
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

Correlation coefficient value under the null hypothesis, 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 interval 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
Scorr.plot6()
corr.plot6(r = 0.6, r2 = 0.9, n = 100)

jhk0530/Rstat documentation built on Dec. 20, 2021, 11:11 p.m.