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
Proportion to Frequency using subpop commandsHi Everyone, I'm trying to run an analysis on a subpopulation of a sample, but I noticed that after…
Using asdoc to create one summary table of multiple crosstabs with logistic regressionI'm trying to create a table similar to the one below (for illustration, using demo data from https:…
Causal Mediation on imputed dataDear Statalisters, To carry causal Mediation analysis, I am using the Mediation package (Medeff com…
Identifying causes of multicollinearityHi! We are struggling with high VIF's in our model (in which we are using panel data with our main …
Difference-in-Difference Regression with multiple time periodsDear Statalists, I am currently investigating Acquirer Performance before and after M&A deals. …
Subscribe to:
Post Comments (Atom)
0 Response to Jensen-Shannon Divergence between training and test set classes
Post a Comment