Session_7_Stata

Session_7_Stata

ID:40567575

大小:203.50 KB

页数:20页

时间:2019-08-04

Session_7_Stata_第1页
Session_7_Stata_第2页
Session_7_Stata_第3页
Session_7_Stata_第4页
Session_7_Stata_第5页
资源描述:

《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-------------+--------------------------

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。
相关文章
更多
相关标签