Description Usage Arguments Value Note

View source: R/valid_dimensions.R

These functions allow you to check whether the dimensions of the
label matrix and the kernel matrix (matrices) are compatible.
`valid_dimensions`

checks whether both k and g are square matrices,
whether y has as many rows as k and whether y has as many columns as g.
`is_square`

checks whether both dimensions are the same.

1 2 3 | ```
valid_dimensions(y, k, g = NULL)
is_square(x)
``` |

`y` |
a label matrix |

`k` |
a kernel matrix |

`g` |
an optional second kernel matrix or |

`x` |
any matrix |

a logical value indicating whether the dimensions of the matrices are compatible for a two step kernel ridge regression.

The function `is_square`

is not exported

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.