Description Usage Arguments Value Examples
Hausman test
1 | hausman(fixed, random)
|
fixed |
is the fixed effect object function |
random |
is the random effect object function |
Chisq the hausman statistic
P-value the probability value
df the degree of freedom
1 2 3 4 5 6 7 8 | data(Produc)
data("usaww")
#fit the fixed function
fx<-span(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,usaww,n=48,t=17,model="fe")
# fit the random function
ran<-span(log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp,Produc,usaww,n=48,t=17,model="re")
# the Hausman test
hausman(fx,ran)
|
Hausman Test
Chisq: 28.51944
P-value: 2.880384e-05
df: 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.