q1Diag | R Documentation |
Qualitative correlation or covariance kernel with one input and diagonal structure.
q1Diag(factor, input = "x", cov = c("corr", "homo", "hete"), intAsChar = TRUE)
factor |
A factor with the wanted levels for the covariance kernel object. |
input |
Name of (qualitative) input for the kernel. |
cov |
Character telling if the result is a correlation kernel, an homoscedastic covariance kernel or an heteroscedastic covariance kernel with an arbitrary variance vector. |
intAsChar |
Logical. If |
An object with class "covQual"
with d = 1
qualitative
input.
The correlation version obtained with cov = "corr"
has no
parameters.
q1Symm
, q1CompSymm
are other covariance
structures for one qualitative input.
School <- factor(1L:3L, labels = c("Bad", "Mean" , "Good"))
## correlation: no parameter!
myCor <- q1Diag(School, input = "School")
## covariance
myCov <- q1Diag(School, input = "School", cov = "hete")
coef(myCov) <- c(1.1, 2.2, 3.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.