Description Usage Arguments Value Author(s) See Also Examples
View source: R/gammaMatrix-gammacap.R
Calculates the covariance matrix of the unique elements of the covariance matrix.
1 2 3 4 5 6 7 8 9 10 11 12 |
x |
Numeric matrix, data frame, or vector. |
type |
Character string.
If |
sigmacap |
Numeric matrix.
The argument is used when |
unbiased |
Logical.
The argument is used when |
bcap |
Integer.
The argument is used when |
seed |
Integer.
The argument is used when |
missing |
Logical.
The argument is used when |
ml_cov |
Logical.
The argument is used when |
names |
Logical. Add names. |
sep |
Character string. Separator for variable names. |
A matrix.
Ivan Jacob Agaloos Pesigan
Other Gamma Matrix Functions:
gammacap_adfnb()
,
gammacap_adf()
,
gammacap_gen()
,
gammacap_mvnadj1()
,
gammacap_mvnadj2()
,
gammacap_mvn()
,
gammacap_nb()
,
gammacap_ols_generic()
,
gammacap_ols_hc_generic()
,
gammacap_ols_hc_qcap_generic()
,
gammacap_ols_hc_qcap()
,
gammacap_ols_hc()
,
gammacap_ols()
,
gammacapnames()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | set.seed(42)
n <- 1000
k <- 2
q <- chol(
matrix(
data = c(1.0, 0.5, 0.5, 1.0),
nrow = k, ncol = k
)
)
z <- matrix(
data = rnorm(n = n * k), nrow = n, ncol = k
)
x <- z %*% q
gammacap(x, type = "adf")
gammacap(x, type = "adfnb")
gammacap(x, type = "gen")
gammacap(x, type = "mvn")
gammacap(x, type = "mvnadj1")
gammacap(x, type = "mvnadj2")
gammacap(x, type = "nb")
gammacap(sigmacap = cov(x), type = "mvn")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.