HomeworkR

Java Python Problem Set

You must turn in a PDF with your answers and a script. (do file).

To get full marks, your code must run without errors.

The problem set is designed assuming you will run your code in Stata.

For this problem set, you will use the dataset called data_ps1.dt

1. Document the relationship between y1 and x1

a. Plot the scatter plot of y1 and x1

b. Run the linear regression

c. What can you say about the relationship between y1 and x1

2. Document the relationship between y1 and x1 controlling for x2 and x3.

a. Plot the scatter plot of y1 and x1 controlling for x2 an x2

b. Run the linear regression

c. Is it possible to recover the coefficient on x1 from point 2b idai 写HomeworkR n a different way? How?

3. Now, study the relationship between y2 and x1

a. Plot the scatter plot of y2 and x1

b. Run the linear regression

c. Is the model misspecified? If so, offer diagnostic and suggest corrections

4. Now, we discover that our dataset contains a cluster_var. Let’s study the relationship between y0, x0, and x1, paying close attention to the computation of std errors.

a. Compute homoscedastic std errors using the canned routine

b. Compute the same errors manually

c. Compute the Eicker-Huber-White std errors using the canned routine

d. Compute the same errors manually

e. Compute the Liang-Zeger cluster standard errors using the canned routine

f         

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值