cd "f:\some\path\"
log using log_file_name, replace
.
.
(do some work; produce a graph)
.
.
roccomp sepsis logodds_a logodds_b logodds_ab, summary name(some_graph)
.
.
graph export some_graph.pdf, replace
.
.
log close
translate log_file_name.smcl log_file_name.pdf
About
. about
Stata/IC 13.1 for Windows (64-bit x86-64)
Revision 19 Dec 2014
Copyright 1985-2013 StataCorp LP
Total physical memory: 4191800 KB
Available physical memory: 1736860 KB
Single-user Stata perpetual license:
Serial number: 301306207433
Licensed to: Dale Plummer
Vanderbilt
.
In Stata, how to display p-value to higher precision after a regression
*
* Run the regression.
*
poisson total_cost post, exposure(count) irr
*
* Display p-value to higher precision.
*
local z=_b[post]/_se[post]
disp `z'
local p=2*normal(-abs(`z'))
disp "p=`p'"
*
* Here is another way to display to higher precision.
*
estimates table, p(%12.10g)