Given a set of projected scores and a set of reference scores, compute one of several performance metrics.

1 2 3 4 5 6 7 |

`fscores` |
the projected scores to be compared to the reference scores |

`scores` |
the original scores from the fitted model |

`type` |
the type of metric to compute |

`ncomp` |
the number of dimensions to use |

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.