The following is from Suest help file
Example 2: Do coefficients vary between groups? ("Chow test")
. webuse income
. regress inc edu exp if male
. estimates store Male
. regress inc edu exp if !male
. estimates store Female
. suest Male Female
. test [Male_mean = Female_mean]
When I run the above, I get the following
( 1) [Male_mean]edu - [Female_mean]edu = 0
( 2) [Male_mean]exp - [Female_mean]exp = 0
chi2( 2) = 1.79
Prob > chi2 = 0.4082
When I run the following I get different result
. test [Male_mean]edu = [Female_mean]edu
( 1) [Male_mean]edu - [Female_mean]edu = 0
chi2( 1) = 1.62
Prob > chi2 = 0.2035
And then the following
test [Male_mean]exp = [Female_mean]exp
( 1) [Male_mean]exp - [Female_mean]exp = 0
chi2( 1) = 0.28
Prob > chi2 = 0.5959
My question is if I want to test the coefficient difference of education, which one is correct? Is it . test [Male_mean]edu = [Female_mean]edu
Or the first one?
Related Posts with Suest Command
Adding options to a package (.ado)Hi everyone, I have written a code to run the LFK index (Int J Evid Based Healthc. 2018 Dec;16(4):1…
Drop if ALL specified variables fulfill a certain conditionDear statalist, is there a way to write the following command Code: drop if intention1==9 & i…
Rename variables to remove part of the textDear Statalists, I have the following variables and would like to rename them to remove untitled###…
Adding extra years to an existing date variableDear Statalist, I have a date variable created the following way: Code: gen PartDat_gli = . repl…
Simultaneously run through two forvalues loopsDear statalist, I'm trying to program the following commands more mechanically: Code: rename inte…
Subscribe to:
Post Comments (Atom)
0 Response to Suest Command
Post a Comment