Hi everyone,
I have a data set with two lists of hourly wages, one for each of two type of subjects. The subjects are divided in couples (1 type one + 1 type 2). I want to compute the average and median percentage difference between each couple of subjects, and its distribution. Can anyone help me do that? So far I only managed to load the data set and open it in a workfile. I only know how to estimate an equation and how to conduct a couple of test! :?
P.S.: I want to make this calculation because I think it could be representative of the average difference between the two types, but I could change it if anyone has a better idea.
Thank you :D ,
Fabio
Average percentage difference
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Average percentage difference
Open the two series up as a group, then click on View->Tests of Equality
Re: Average percentage difference
Thanks for the quick reply!
How can I do that programming?
FabioIM
edit: I have done it, but I am not sure how to interpret the results... :(
How can I do that programming?
FabioIM
edit: I have done it, but I am not sure how to interpret the results... :(
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: Average percentage difference
If I'm understanding your design, you have two series representing the coupled data, where the two values for a given observation are to be compared. If that's the case, then unfortunately the test Gareth gave you isn't going to do what you want since you want to compare the pairwise observations. The one that we provide compares the overall means and/or medians without accounting for the matched design.
I think that the easiest thing for you to do is to simply compute the difference by hand, and then test that. If you want the pct different between the two series, then just generate a new series. In fractional values,
Then you can test whether the average or median of that is zero, as in
I think that the easiest thing for you to do is to simply compute the difference by hand, and then test that. If you want the pct different between the two series, then just generate a new series. In fractional values,
Code: Select all
series reldiff = (a - b) / a
series reldiff = (a - b) / bCode: Select all
reldiff.teststat(mean=0)
reldiff.teststat(med=0)
Re: Average percentage difference
After performing it, I had the impression that it wasn't what I am looking for...
I didn't understand what you mean from "if you want the pct..." on. Could you be clearer? I am a beginner ;)
What does pct mean?
Thanks a lot!
FabioIM
I didn't understand what you mean from "if you want the pct..." on. Could you be clearer? I am a beginner ;)
What does pct mean?
Thanks a lot!
FabioIM
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: Average percentage difference
Just saying that you can compute the difference between the two by taking the difference, or the pct. difference by taking the difference divided by a basis. You can obviously choose either as a basis. The examples I give are in fractional terms.
Re: Average percentage difference
Got it,
Thanks!
Thanks!
Who is online
Users browsing this forum: No registered users and 2 guests
