Repository navigation
nwdynam 1.5.0
Changed
- Every fit runs in the compiled plugin; the Mata evaluators are no longer part of the shipped fit path. Choice (all 17 effects with windows, weighted effects, two-mode networks,
opportunities()andtie()), rate, rate with intercept (all effects, windows, weights, two-mode) now evaluate log likelihood, gradient and the exact Hessian natively (one generic kernel, one data block per fit, only theta travels per evaluation). The Hessian gives the standard errors; Newton-Raphson polishes the maximum of the concave models to round-off. - A fit without
seed()starts from a fixed point and is reproducible. - When the plugin file is missing the command stops with return code 601; when the installed plugin is older than the package (or cannot be loaded) with return code 3495. Both name the file and say to reinstall. The warning line about the slower Mata engine is gone, with the engine.
- The plugin protocol is versioned (query code 99); plugin binaries of version 1.4.0 and earlier are recognised as too old. The Linux and Windows plugins are rebuilt by the build workflow; until then those platforms stop with r(3495).
Faster
- Choice coordination on the manufacturing emails (undirected):
inertia5 s for 368 events (was 66 s) and 19 s for 1,019 events (was 253 s);inertia trans9 s (was 113 s) and 31 s (was 449 s). The estimates are the same to the printed digits. Rate fits withoutinterceptstart from a Newton step: the default fit that took 59 s (about 2,000 evaluations) takes 0.8 s.
Removed
- The Mata fit paths and evaluators. They live on as reference code of the test suite (
cscripts/ref_dynam_mata.do) against which the plugin is compared on random cases.
Tested on macOS with Stata 17 BE, Stata 18 BE and StataNow 19.5 MP (the full test suite and, under Stata 17, the extended tests). Windows and Linux: not yet tested; the plugins are built by the build workflow.