![]() ![]() merge using school // one-to-one merging.expand 5 in -10/-1 // duplicate observations n-1 times.app using c:\data\class, keep(id state q1-q10).set obs 100 // to change the numnber of observations.Twoway function c=chi2(1,x), range(0 5) xsize(4) ysize(3) yline(.5) Scatter gear_ratio headroom, xsize(4) || function y=x, range(0 5) Twoway function t=tden(1, x), range(-5 5) xsize(4) ysize(2) color(blue) lstyle(p1solid) xlabel(-5(1)5) recast(area) || function z=normden(x), range(-5 5) color(maroon) lwidth(thick) Twoway function t=tden(3, x), range(-5 5) xsize(4) ysize(2) xline(0) Twoway function y=normalden(x), range(-4 -1.96) xlabel(#10) xline(0) recast(area) || function y=normalden(x), range(1.96 4) recast(area) || function y=normalden(x), range(-1.96 1.96) lstyle(foreground) ![]() Twoway function y=normalden(x), range(-5 5) xsize(4) ysize(2) xlabel(#10) xline(0) Twoway (line mpg weight, sort c(1)) (dropline trunk weight, sort) (scatter turn weight) Scatter mpg weight, sort c(1) || line trunk weight, sort || scatter turn weight Scatter mpg weight || scatter trunk weight || scatter turn weight Scatter mpg turn weight, yline(30) xline(3500) Twoway fpfitci mpg weight || scatter mpg weight, sort m(t) by(foreign, total row(1)) Twoway fpfitci mpg weight, sort m(t) by(foreign, total row(1)) Scatter mpg weight, sort m(t) by(foreign, total row(1)) Scatter mpg weight, sort title("MPG versus Weight") m(diamond) by(foreign) Twoway fpfitci mpg weight || scatter mpg weight, m(d) Scatter mpg weight, title("MPG versus Weight") msymbol(triangle) Scatter mpg weight, sort xline(4000) yline(25) Scatter mpg weight, title("MPG versus Weight") yscale(log) xlabel(#5) // log scales Scatter mpg weight, title("MPG versus Weight") ylabel(minmax) xlabel(minmax) Scatter mpg weight, title("MPG versus Weight") ylabel(#8) xlabel(0(2000)6000) Scatter mpg weight, ytitle("MPG (Mileage)") xtitle("Car Weight") Scatter mpg weight, title("MPG versus Weight") xsize(4) ysize(3) Scatter mpg weight, title("MPG versus Weight") caption("Source: Stata Corp. Scatter mpg weight, sort title("MPG versus Weight") subtitle("Year 2006") Graph pie mpg turn trunk, plabel(_all name) Graph dot (mean) mpg, over(class) over(foreign) Graph hbar (sum) mpg turn, over(class) by(foreign) stack ![]() Graph hbar (sum) mpg turn, over(class) by(foreign) Graph hbar (sum) mpg turn, over(class) stack Graph hbar (mean) mpg, over(class) over(foreign, sort(1) descending) Graph hbar (mean) mpg, over(class) over(foreign) Graph hbar (mean) mpg, over(foreign) over(class) Graph hbar (mean) mpg turn, over(foreign) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |