欢迎来到天天文库
浏览记录
ID:40567575
大小:203.50 KB
页数:20页
时间:2019-08-04
《Session_7_Stata》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、MoreExamplesofRunningRegressionwithStataProject1:Project6.28onp.254oftheTextbookRefertoCDI(CountyDemographicInformation)datasetinAppendixC.2.Youhavebeenaskedtoevaluatetwoalternativemodelsforpredictingthenumberofactivephysicians(Y)inaCDI.ProposedmodelIincludesaspredictorvariablestotalpopulation(
2、X1),landarea(X2),andtotalpersonalincome(X3).ProposedModelIIindicatesaspredictorvariablespopulationdensity(X1,totalpopulationdividedbylandarea),percentofpopulationgreaterthan64yearsold(X2),andtotalpersonalincome(X3).First,let’screateanewvariablepopulationdensity(X1,totalpopulationdividedbylandar
3、ea)formodelIIandexaminethedata..cd"D:s919_2008s7"D:s919_2008s7.clear.usecdi,replace.genpdens=pop/land.describeContainsdatafromcdi.dtaobs:440vars:18size:66,440(99.4%ofmemoryfree)-------------------------------------------------------------------------------storagedisplayvaluevariablenametype
4、formatlabelvariablelabel-------------------------------------------------------------------------------iddouble%10.0gIDcountystr21%21sCountystatestr2%2sStatelanddouble%10.0gLandareapopdouble%10.0gTotalpopulationpop1834double%10.0gPercentofpopulationaged18-34pop65double%10.0gPercentofpopulation6
5、5orolderdoctorsdouble%10.0gNumberofactivephysicianshbedsdouble%10.0gNumberofhospitalbedsscrimesdouble%10.0gTotalseriouscrimesphsgdouble%10.0gPercenthighschoolgraduatespbdouble%10.0gPercentbachelordegreespblwpovdouble%10.0gPercentbelowpovertylevelpunempdouble%10.0gPercentunemploymentpcincdouble%
6、10.0gPercapitalincometotpincdouble%10.0gTotalpersonalincomeregiondouble%10.0gGeographicregion1=NE2=NC3=S4=Wpdensfloat%9.0gHandoutforSession7,SOWO919Page20-------------------------------------------------------------------------------Sortedby:Note:datasethaschangedsincelastsaved.sumVariable
7、ObsM
8、eanStd.Dev.MinMax-------------+--------------------------------------------------------id
9、440220.5127.16131440county
10、0state
11、0land
12、4401041.4111549.9221520062pop
13、440393010.96019871000438863164-------------+--------------------------
此文档下载收益归作者所有
点击更多查看相关文章~~