Description Usage Arguments Author(s) See Also Examples
Plots grid of panels and times, colored to distinguish observed and missing data.
1 2 |
x |
an object of class |
legend |
logical. If |
rot.axis |
vector of degrees for rotation of axis labels. First element corresponds to time labels and second element corresponds to panel labels. |
... |
further arguments passed to or from other methods. |
Konstantin Kashin kkashin@fas.harvard.edu
1 2 3 4 5 6 7 8 9 | data(WhittenWilliams)
# expect warning urging to use 'complete.case=FALSE'
out <- panelAR(milex_gdp~lag_milex_gdp+GOV_rl+gthreat+GOV_min+GOV_npty+election_yr+
lag_real_GDP_gr+cinclag+lag_alliance+lag_cinc_ratio+lag_us_change_milex_gdp,
data=WhittenWilliams, panelVar="ccode", timeVar="year", autoCorr="psar1",
panelCorrMethod="pcse", complete.case=TRUE)
par(cex.axis=0.6)
plot(out, rot.axis=c(45,0))
|
The following units have non-consecutive observations. Use runs.analysis() on output for additional details: 235.
Warning message:
The number of time periods used for the calculation of correlated SEs / PCSEs (18) is less than half the average number of time periods per panel (40.84). Consider setting complete.case=FALSE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.