get_r2_mcfadden: Calcuate the the adjusted McFadden's pseudo R-square

View source: R/main.R

get_r2_mcfaddenR Documentation

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)

Arguments

embeds

a n-by-q matrix, specify the embedding matrix.

y

a n-length vector, specify the labels.

Details

None

Value

return the adjusted McFadden's pseudo R-square.

References

McFadden, D. (1987). Regression-based specification tests for the multinomial logit model. Journal of econometrics, 34(1-2), 63-82.


ProFAST documentation built on May 29, 2024, 7:15 a.m.