Repository navigation
nwdynam 1.10.0
Added
estat choiceplot(choice and choice_coordination): the rank of the realised receiver (pair) among the risk set of every event by the fitted probability. Graph of the share of events with rank at most k against the uniform expectation and the expectation under the fitted model; mean and median rank, and a table of top-k hits (topk(),maxrank(),frame(),noplot,name(), anytwowayoption). Ties share the mid rank.estat rateplot(rate, with or withoutintercept): observed against expected number of events per actor as sender with the 45 degree line (over(actor)), and observed and expected events per period for the most active actors (over(time),periods(),topactors(), anytwowayoption; count axes have integer labels). For the model with intercept the expected counts are the shares of the total hazard and add up to the observed number of events.- Both are extensions; goldfish has no such plots. They use the probabilities of the native evaluator (no Mata likelihood). Test
cscripts/test_nwdynam_resultplots.dochecks the numbers against an independent enumeration. The Mata library gainsdynam_post_rank()anddynam_post_rate(); the plugin is unchanged. - Graph options of both: default graph names
choiceplotandrateplot(graph display choiceplotworks withoutname());name(name)accepts a trailing, replace;saving()andexport()as above; default titles and axis titles are black andtitle("")suppresses the default title; a mistyped graph name, a badsaving()/export()file or directory stops with a message before any computation. Withnoplot,name(),saving(),export()andtwowayoptions give return code 198. - The tables and returned results of the existing diagnostics (
estat ic,eventlik,eventprob,outliers,changepoints) are unchanged.
Changed
- The graph options of the postestimation plots follow the common convention of the nw packages and use the graph helper of the core: nwcommands (core) 3.29.0 or later is required (asked when a graph is drawn; with an older core the plot stops with r(199) and a message, tables and all other commands are unaffected).
estat outliers, plotandestat changepoints, plot: new optionssaving(filename)(a.gphfile, replaced if it exists,, replaceaccepted),export(filename [, graph_export_options])(graph exportof this graph) and anytwowayoption, passed last so that it overrides the defaults. Options withoutplotstop with return code 198, exceptname()alone, which is still accepted. The default graph is unchanged (unnamed, the picture is byte-identical to 1.9.1).
Tested on macOS with Stata 17 BE (plot tests, the ado test and the result-plot test, against core 3.29.0); on Linux and on Windows with StataNow 19.5 MP (the plot tests and the package tests of this version). Stata 18 on the Mac was not run for this version. The compiled plugin is the one of 1.9.1 (unchanged).