I'm working on Stata and I have a training and a test set. For each one I have a set of variables (health conditions in my case) and their probabilities over X number of classes. So, the variables are in the rows and the classes in the columns of my dataset. I want to calculate the Jensen-Shannon divergence between the classes in the training and the classes in the test set. I see that R has a ready function of these calculations but Stata doesn't. I tried to "build" the formula in Stata but I conclude with a JSdiv for every condition and I don't know how to calculate the statistic between classes. Any help or previous experience please?
Related Posts with Jensen-Shannon Divergence between training and test set classes
Remove axes from twoway with by()Hi, Any ideas on how to remove the x-axis from all panels in a twoway graph with the by-option? I h…
Inclusion of Instrumental Variables in a fixed effects regression.Hi. I am currently looking into the influence of natural disasters on human capital outcomes, throug…
very high VIF in FE: An issue?Hi, I am currently running my model fit diagnostics for my FE model (after Hausman Test lead me the…
Difference in Difference modeling. How to separate the treated group from the control group in the datasetHello, can anyone please help me on the command to differentiate my control group from treated group…
Merged dataset but converted date variables inaccurateHi I have two datasets, one is compustat data and the other is covenant violations (from Creditor C…
Subscribe to:
Post Comments (Atom)
0 Response to Jensen-Shannon Divergence between training and test set classes
Post a Comment