plotCor-method: Correlation Plot

Description Usage Arguments Examples

Description

Correlation plot for the xt (product of εp, σb) and ytb) by groups.

Usage

1
2
3
4
plotCor(x, groups, ...)

## S4 method for signature 'RS,numeric'
plotCor(x, groups, ...)

Arguments

x

An object of RS class.

groups

A positive integer indicating the number of subsets with equal length and preserving the structure order. Valid values:

  • 1: unic linear regresion;

  • 2 - 6: linear regresion by group depending the number of group;

  • bigger than 6: exceeded group, pass to 6 groups.

...

Additional graphical arguments, see plot, plot.default and par.

Examples

1
2
3
4
5
6
7
n <- 50
# An example to create the RS class.
my_first_class <- RS(sigb = rnorm(n, mean = 0, sd = 1),
                     epsb = rnorm(n, mean = 0, sd = 2),
                     epsp = rnorm(n, mean = 1, sd = 1))
# plot the correlation
plotCor(my_first_class, 7)

4301350/sm4sd documentation built on June 14, 2020, 4:22 p.m.