File: cortab.Rd

package info (click to toggle)
r-cran-plm 2.6-2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,032 kB
  • sloc: sh: 13; makefile: 4
file content (35 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/test_cd.R
\name{cortab}
\alias{cortab}
\title{Cross--sectional correlation matrix}
\usage{
cortab(x, grouping, groupnames = NULL, value = "statistic", ...)
}
\arguments{
\item{x}{an object of class \code{pseries}}

\item{grouping}{grouping variable,}

\item{groupnames}{a character vector of group names,}

\item{value}{to complete,}

\item{\dots}{further arguments.}
}
\value{
A matrix with average correlation coefficients within a group
(diagonal) and between groups (off-diagonal).
}
\description{
Computes the cross--sectional correlation matrix
}
\examples{

data("Grunfeld", package = "plm")
pGrunfeld <- pdata.frame(Grunfeld)
grp <- c(rep(1, 100), rep(2, 50), rep(3, 50)) # make 3 groups
cortab(pGrunfeld$value, grouping = grp, groupnames = c("A", "B", "C"))

}
\keyword{htest}