get_r2_mcfadden | R Documentation |
Calcuate the the adjusted McFadden's pseudo R-square between the embeddings and the labels
get_r2_mcfadden(embeds, y)
embeds |
a n-by-q matrix, specify the embedding matrix. |
y |
a n-length vector, specify the labels. |
None
return the adjusted McFadden's pseudo R-square.
McFadden, D. (1987). Regression-based specification tests for the multinomial logit model. Journal of econometrics, 34(1-2), 63-82.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.