View source: R/gfm_eval_intercept_init.R

measurefun | R Documentation |

Evaluate the smallest cononical correlation (ccor) coefficients or trace statistic between two matrices, where a larger ccor or trace statistic is better.

```
measurefun(hH, H, type=c('trace_statistic','ccor'))
```

`hH` |
a |

`H` |
a |

`type` |
a character taking value within |

return a real number.

nothing

Liu Wei

```
dat <- gendata(n = 100, p = 200, q=2, rho=3)
res <- Factorm(dat$XList[[1]])
measurefun(res$hB, dat$B0)
```

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.