Description Usage Arguments Details Value See Also Examples
Construct an iid normal ‘random effects’ kernel.
1 |
column |
optionally, a single string giving the name of a factor
feature on which the kernel acts. This will be used to access columns from
a dataframe when the kernel is evaluated . If |
sigma |
a positive scalar parameter giving (the square-root of) the overall variance of the kernel |
The iid kernel takes the form:
k_{iid}(\mathbf{x}, \mathbf{x}') = σ^2 ( \mathbf{x} \mathbf{x}' )
where \mathbf{x} are indicator variables with each column containing 1s for records in a given group and 0s otherwise and σ^2 is the overall variance. This is equivalent to a hierarchical or random-effects model: z_j \sim N(0, σ^2) with j indexing the groups of the specified factor.
In practice, the active column should actually be a single factor and the indicator variables will be built internally.
A kernel object for which there are a range of associated functions, see kernel and access for details.
Other kernel.constructors: composition,
expo, int, lin,
mat32, mat52,
per, rbf, rq
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.