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
Replicating fitted values graph Hi all, I am hoping to replicate a graph from this paper in Political Analysis. The graph, attach…
How to Plot a two-way Interaction GraphDear Statalist I'm currently trying to plot a two-way interaction graph. My logit regression code i…
Sequence effect with repeated measuresDear team, I have a crossover design with following repeated data structure: Two methods for measuri…
What is the syntax to retrieve r-class stored results in multiple equation models, like bivariate poisson, var, or sure?I can retrieve coefficient estimates by: gen Cf = [equationname]_b[varname] ,no problem! But I am ha…
Creating a Dummy variable for every first duplicate observation (using -Duplicates Drop- without deleting duplicate observations)Hey all, I was wondering if there is a formula to create a dummy variable for the first observatio…
Subscribe to:
Post Comments (Atom)
0 Response to Jensen-Shannon Divergence between training and test set classes
Post a Comment