Displaying 2 results from an estimated 2 matches for "gamma_3".
Did you mean:
gamma_1
2013 Oct 19
2
ivreg with fixed effect in R?
I want to estimate the following fixed effect model:
y_i,t = alpha_i + beta_1 x1_t + beta_2 x2_i,tx2_i,t = gamma_i + gamma_1
x1_t + gamma_2 Z1_i + gamma_3 Z2_i
I can use ivreg from AER to do the iv regression.
fm <- ivreg(y_i,t ~ x1_t + x2_i,t | x1_t + Z1_i + Z2_i,
data = DataSet)
But, I'm not sure how can I add the fixed effects.
Thanks!
[[alternative HTML version deleted]]
2011 Nov 24
1
Changing graphic titles when using bquote and resizing the graphic window
...ow = c(1,3))
for (i in 1:3){
title <- as.expression(bquote(gamma[.(i)]))
plot(1:10, main = title)
}
Once you ran the code, the figure displays as expected --- each title is $\gamma_i$, $i=1, 2, 3$. Now if you resize manually the graphic window using the mouse all the titles will be set to $\gamma_3$.
In case this is useful, here's the ouput of sessionInfo().
> sessionInfo()
R version 2.14.0 (2011-10-31)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
Best,
Mathieu
---...