get_r2_mcfadden: Calcuate the the adjusted McFadden's pseudo R-square
Description
Calcuate the the adjusted McFadden's pseudo R-square between the embeddings and the labels
Usage
get_r2_mcfadden(embeds, y)
Value
return the adjusted McFadden's pseudo R-square.
Arguments
- embeds
a n-by-q matrix, specify the embedding matrix.
- y
a n-length vector, specify the labels.
References
McFadden, D. (1987). Regression-based specification tests for the multinomial logit model. Journal of econometrics, 34(1-2), 63-82.