00:01
All right, hello everybody.
00:02
Today we're going to be comparing the effects of ols and lad estimates.
00:07
So let's go right into it.
00:09
First things first, you'll notice i've installed the woldridge package as well as the l1 pack and lm test packages.
00:16
L1 pack will allow us to perform our lad estimates, and the lm test will allow us to perform the bruch -pagan test for heteroscadisticity.
00:25
Obviously, once you install all these packages, you will then need to essentially import them into your working environment.
00:30
Using this function.
00:32
And over here, i've commented in the formula that we will be using.
00:36
And our dataset for today is the k -401 -k subs from, as always, the woolridge package.
00:42
So let's get straight into it.
00:43
First thing i'm going to do, just as a matter of convenience, is i'm going to set that equal to k -401 -k subs.
00:51
That's just so i don't have to type it out every time, because i am inherently lazy by nature by virtue of being a programmer.
00:58
Okay.
00:59
So first thing we want to do is estimate this equation by ols.
01:04
So we're going to say ols is our lm, that's linear model, net tfa to ink, plus i, ink, squared, plus age, plus i age squared, plus male, plus e 401k.
01:24
And i forgot to include the data equals data.
01:29
Awesome.
01:31
Now, if we take a summary of ols, we will get this.
01:34
So among other things, obviously, there's a lot of interesting information here.
01:39
What we want to do is interpret the coefficient on e401k.
01:43
This is 9 .713.
01:46
That means that if a family is eligible for 401k, that's what this means, right, eligibility for 401k, then their net financial assets would be 9 ,770 ,000.
02:02
$113 .482 higher than the family that's not eligible for a 401k, on average, of course.
02:10
So that's something that you should be able to do by looking at the dataset, looking at, you know, the research or the person that conducted it and finding out what they mean by these different things.
02:23
That's honestly just, you know, taking the time and doing the basic research.
02:27
But yeah, coefficient interpretation, not a big deal.
02:29
We'll also notice that this is statistically significant at the 5 -1 and 0 .1 % confidence levels.
02:35
Obviously, 10 as well.
02:38
So, yeah, that's interpreting the coefficient there.
02:43
Now, the next thing we want to do is check the heteroscadasticity using the broishe -pagan test.
02:51
So the easiest way to do this is using our lm test package...