01.05.2013 Views

Introduction to Stata 8

Introduction to Stata 8

Introduction to Stata 8

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

twoway rspike<br />

Cross-sectional study<br />

/ / c:\dokumenter\...\gph.length_bias.do<br />

clear<br />

set obs 20<br />

gen x=_n<br />

gen y1=x<br />

gen y2=y1+2<br />

replace<br />

y2=y1+8 if mod(x,2)==0<br />

set<br />

scheme lean2<br />

twoway (rspike y1 y2 x , horizontal blwidth(*1.5)) ///<br />

, ///<br />

yscale(off) ylabel(, nogrid) ytitle("") ///<br />

xlabel(none) xtitle("Cross-sectional study") ///<br />

xline(14.5) ///<br />

xsize(3.7) ysize(2.3) scale(1.4)<br />

X>e p(rpoi< grap> i< <strong>to</strong> i11( ?ia

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!