搜索
人大经济论坛 附件下载

附件下载

所在主题:
文件名:  tabl3.txt
资料下载链接地址: https://bbs.pinggu.org/a-920117.html
附件大小:
The data here are concerned with whether people default on a loan taken from a particular bank and for identical interest rates and for a fixed period. The information on each individual is their sex (male of female); their income (in pounds), whether the person is a home owner or not, their age (in years), and the amount of the loan (in pounds).

The information recorded is whether the individal defaulted on the loan or not. Study the data and try and understand a relation between the persons characteristics and defaulting. Specifically, what is your estimated probability that a female aged 42, who is not a home owner, has an income of 23,500, and took a loan of 12,000, defaults on the loan?

The table holding the data have headings as follows:

m/f: male=1, female=0
age: age in years
home: home=1 is a home owner, home=0 is not a home owner
inc: income
loan: amount of loan
def: default=1, non-default=0.
  1. Q3=read.table("tabl3.txt")
  2. colnames(Q3)=c("Sex","Age","Home","Inc","Loan","Def")
  3. Q3$Sex=as.factor(Q3$Sex)
  4. Q3$Home=as.factor(Q3$Home)
  5. Q3$Def=as.factor(Q3$Def)
  6. summary(Q3)
复制代码
然后用glm分析response.
  1. Q3.mod=glm(Def~Sex+Age+Home+Inc+Loan,family=binomial)
复制代码
总感觉不对,好像不是这样的。response 好像不应该用Def。一下子卡在那里了。。

希望各位提供点意见。

谢谢!


    熟悉论坛请点击新手指南
下载说明
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。
2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。
3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。
(如有侵权,欢迎举报)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

GMT+8, 2026-1-7 11:11