statap

statap - Stata Practice Lesson 1 . use hsb2, clear . help ....

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Stata Practice Lesson 1 . use hsb2, clear . help . d . su . su, d . tab female . help inspect . help codebook . inspect . codebook . labelbook . su read-science . su read-math, d . univar read-math [download univar] . tab1 female-ses . insp read-socst . codebook read-math . labelbook read-math . su read . su read if female==1 . su read if female~=1 . su read if female==0 . su read if female~=0 . su read if read<50 . su read if read<=50 . su read if read>50 & read<. . su read if read>=50 & read<. . su read if read==52 . su read if read~=52 . su read if math<50 . su read if science>60 & science<. . su read if female==1 & race==4 & math>=50 & math<. . display 2+2 . di 2*4 . di (2+5)*(7+8) . di (9-7)*(2+2) . di (10-3)*(6-3)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 . di 10/5 . di (10+6)/4 . di (2+6)/2 . di (10-2)/4 . di 10/(3+2) . di 15/(6-1) . di (10+2)/(2+4) . di sqrt(100) . di exp(1.74) . di 500/_N . di 5*_N . nmissing [downloaded command] . nmissing read-math . count . count if socst<=50 . count if race==3 . duplicates list id . duplicates report id . duplicates browse id . sort id . list . l read-socst . l read-math, compress . sort female . l female . l read-math in 4 . l read-math in –4 [fourth from last] . l read-math in 1/10 . l read-math in 47/55 . l read-math in –10/l [the letter ‘l’, which stands for ‘last’] . l read-math in 1/10 . l read-math in –10/l . l read if read==. [‘.’ = missing value] . l read if read<. [i.e. list non-missing cases of read] . l id read if read>37 & read<75 . l id read if read>=37 & read<=75 . l id read if read<45 & read>65 & read<. . l id read if read<45 & read>65 & read<. . l id read if read<=46 & read>=55 & read<60 . l read if female==1 . l read if female==0 . l read if female~=1
Background image of page 2
3 . l read if female~=0 . l read if female==1 & math<=58 & math>=65 & math<. . l read if female==1 . l read if female==0 . bys female: l read [l=list] . bys female: l read math science . bys race: l read math science . bys race: l read if read<=52 . bys race: l read if read<. . bys race: l read if read>=35 & read<. . bys ses: l read in –15/-1 . br [br=browse] . br female math . br female if science<50 & math>50 & math<. . br in 12 . br in –3 . br in 1/12 . br in –20/-1 . br female in 27 . ed [ed=edit] . ed race science . ed race if female==0 . ed in 36 . ed in -2 . ed in 36/42 . ed in –17/-1 . sort math . findit vallist . vallist math [download vallist] . vallist schtyp . findit listjl [download listjl] . listjl math . listjl schtyp . listjl math, by(schtyp) . listjl science, by(race) . clear Lesson 2 . u hsb2, clear . tabstat math, stats(mean med sd min max) . tabstat math, s(mean med sd min max) by(female) . tabstat math, s(mean med sd min max) by(female) format(%9.2f) . tabstat math, s(mean med sd min max) by(female) format(%9.2f) col(stats)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 . tabstat read write math science, s(mean med sd min max) f(%9.2f) . tabstat read write math science, s(mean med sd min max) f(%9.2f) col(stats) . tabstat read write math science, s(min max q n) f(%9.2f) col(stats)
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/11/2011 for the course SYA 6305 taught by Professor Tardanico during the Fall '08 term at FIU.

Page1 / 21

statap - Stata Practice Lesson 1 . use hsb2, clear . help ....

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online