楼主: flower_qq520
1426 6

[问答] 程序不能运行,急死我了,高人来帮忙 [推广有奖]

  • 0关注
  • 0粉丝

本科生

12%

还不是VIP/贵宾

-

威望
0
论坛币
96 个
通用积分
1.5055
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
1913 点
帖子
50
精华
0
在线时间
89 小时
注册时间
2007-5-10
最后登录
2023-12-11

楼主
flower_qq520 发表于 2011-7-28 08:49:59 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
我遇到的问题是这样的:这是一段关于分别对于本科生和研究生在教育对于收入方面的影响.其中税务部分我包含了联邦税和省税.f_tax f_credits p_tax p_credits分别代表联邦税 联邦反税 省税和省反税。但是对于我对于f_tax, f_credits, p_tax, p_credits的Code貌似哪里出了错误,但我看了很多遍都看不出,请告人来指正,谢谢。
二维码

扫码加我 拉你入群

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

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

关键词:Credits Credit cred Edit code 运行 程序 帮忙 高人

沙发
flower_qq520 发表于 2011-7-28 08:50:17
我的Code:

data QUEBEC;
set QUEBEC;
if wagesp<=30004 then f_tax=0.17*wagesp;  /*federal tax*/
if 30004<wagesp<=60009 then f_tax=0.25*(wagesp-30004)+5101;
if wagesp>60009 then f_tax=0.29*(wagesp-60009)+12602;

data QUEBEC;
set QUEBEC; /*federal tax credits*/
f1=7231; /*basic amount*/
f2=(wagesp-3500)*0.039; /*CPP/QPP contribution*/
if f2<0 then f2=0;
if f2>1329.9 then f2=1329.9;
f3=wagesp*0.024; /*UI/EI contributions*/
if f3<0 then f3=0;
if f3>936 then f3=936;
f_credits=(f1+f2+f3)*0.17;

data QUEBEC;
set QUEBEC;
if wagesp<=26000 then p_tax=0.19*wagesp;  /*provincial tax*/
if 26000<wagesp<=52000 then p_tax=0.225*(wagesp-26000)+4940;
if wagesp>52000 then p_tax=0.25*(wagesp-52000)+10790;

data QUEBEC;
set QUEBEC; /*provincial tax credits*/
p1=5900+2515; /*basic exemption*/
p2=(wagesp-3500)*0.039; /*CPP/QPP contribution*/
if p2<0 then p2=0;
if p2>1329.9 then p2=1329.9;
p3=wagesp*0.024; /*UI/EI contributions*/
if p3<0 then p3=0;
if p3>936 then p3=936;
p_credits=(p1+p2+p3)*0.22;

data BA;
set BA;
wageperhour=(wagesp-1818-f_tax+f_credits-p_tax+p_credits)/(hrswkp*wkswkp);
run;

proc reg data=BA;
model wageperhour=exp exp2 exp3 exp4;
run;

data PG;
set PG;
wageperhour=(wagesp-2147-f_tax+f_credits-p_tax+p_credits)/(hrswkp*wkswkp);
run;

proc reg data=PG;
model wageperhour=exp exp2 exp3 exp4;
run;

藤椅
flower_qq520 发表于 2011-7-28 08:51:03
这页之前贴错了,现删除

板凳
flower_qq520 发表于 2011-7-28 11:57:24
已经自己解决了,谢谢捧场。

报纸
honghejing 发表于 2011-7-28 14:42:37
不错,有些问题首先还是自己搞定为好

地板
leedx 发表于 2011-7-28 20:34:54
LZ语文没过关呀,语句不通,呵呵~

7
zkymath 在职认证  发表于 2011-8-4 15:54:08
首先编写伪码是个好选择

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-3 17:24