Description Usage Arguments Value Author(s) See Also Examples

View source: R/rags2ridgesFused.R

Generates a list of (data-driven) targets to use in fused ridge estimation.
Simply a wrapper for `default.target`

.

1 | ```
default.target.fused(Slist, ns, type = "DAIE", by, ...)
``` |

`Slist` |
A |

`ns` |
A |

`type` |
A |

`by` |
A |

`...` |
Arguments passed to |

A `list`

of *K* covariance target matrices of the same size.

Anders E. Bilgrau, Carel F.W. Peeters <[email protected]>, Wessel N. van Wieringen

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ```
# Make some toy data
ns <- c(3, 4) # Two classes with sample size 3 and 4
Slist <- createS(ns, p = 3) # Generate two 3-dimensional covariance matrices
Slist
# Different choices:
default.target.fused(Slist, ns)
default.target.fused(Slist, ns, by = seq_along(Slist)) # The same as before
default.target.fused(Slist, ns, type = "Null")
default.target.fused(Slist, ns, type = "DAPV")
default.target.fused(Slist, ns, type = "DAPV", by = rep(1, length(Slist)))
# Make some (more) toy data
ns <- c(3, 4, 6, 7) # Two classes with sample size 3 and 4
Slist <- createS(ns, p = 2) # Generate four 2-dimensional covariance matrices
# Use the same target in class 1 and 2, but another in class 3 and 4:
default.target.fused(Slist, ns, by = c("A", "A", "B", "B"))
``` |

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.