Title: | Panel-Corrected Standard Error Estimation in R |
---|---|
Description: | A function to estimate panel-corrected standard errors. Data may contain balanced or unbalanced panels. |
Authors: | Delia Bailey <[email protected]> and Jonathan N. Katz <[email protected]> |
Maintainer: | Delia Bailey <[email protected]> |
License: | GPL (>= 3) |
Version: | 1.9.1.1 |
Built: | 2024-11-01 11:22:18 UTC |
Source: | https://github.com/cran/pcse |
A function to estimate panel-corrected standard errors. Data may contain balanced or unbalanced panels.
The DESCRIPTION file:
Package: | pcse |
Title: | Panel-Corrected Standard Error Estimation in R |
Version: | 1.9.1.1 |
Date: | 2018-06-07 |
Author: | Delia Bailey <[email protected]> and Jonathan N. Katz <[email protected]> |
Maintainer: | Delia Bailey <[email protected]> |
Description: | A function to estimate panel-corrected standard errors. Data may contain balanced or unbalanced panels. |
License: | GPL (>= 3) |
Packaged: | 2018-06-07 18:47:40 UTC; delia.bailey |
Date/Publication: | 2018-06-07 19:16:10 UTC |
NeedsCompilation: | no |
Repository: | https://deliabailey.r-universe.dev |
RemoteUrl: | https://github.com/cran/pcse |
RemoteRef: | HEAD |
RemoteSha: | 0845ffdba52b19b363f01f2fa76eab60b9982fdd |
Index of help topics:
agl agl aglUn aglUn pcse Panel-Corrected Standard Error Estimation in R pcse-package Panel-Corrected Standard Error Estimation in R summary.pcse Summary Method for Package pcse vcovPC Extract Panel-Corrected Variance Covariance Matrix
Further information is available in the following vignettes:
pcse |
Implementing Panel-Corrected Standard Errors in R: The pcse Package (source, pdf) |
Delia Bailey <[email protected]> and Jonathan N. Katz <[email protected]>
Maintainer: Delia Bailey <[email protected]>
Alvarez, R. Michael, Geoffrey Garrett and Peter Lange. (1991) Government Partisanship, Labor Organization, and Macroeconomic Performance. American Political Science Review 85:539-56.
Beck, Nathaniel, Jonathan N. Katz, R. Michael Alvarez, Geoffrey Garrett and Peter Lange. (1993) Government Partisanship, Labor Organization, and Macroeconomic Performance: A Corrigendum. American Political Science Review 87:945-948.
Beck, Nathaniel and Jonathan N. Katz. (1995) What to do (and not to do) with Time-Series Cross-Section Data. American Political Science Review 89:634-647.
Bailey, Delia and Jonathan N. Katz. (2011) Implementing Panel-Corrected Standard Errors in R: The pcse Package. Journal of Statistical Software, Code Snippets 42(1):1–11. http://www.jstatsoft.org/v42/c01/
## see demo file.
## see demo file.
Cross-National panel data on the OECD countries containing information about economic performance, government partisanship and labor organization.
data(agl)
data(agl)
A data frame with 240 observations on the following 10 variables.
year
a numeric vector
country
a character vector
growth
the OECD growth rate
lagg1
An instrument for lagged growth rates constructed with an auxilary regression.
opengdp
weighted OECD demand
openex
weighted OECD export
openimp
weighted OECD import
leftc
"Left" cabinet composition
central
labor organization index
inter
interaction between leftc and central
Alvarez, R. Michael, Geoffrey Garrett and Peter Lange. (1991) Government Partisanship, Labor Organization, and Macroeconomic Performance. American Political Science Review 85:539-56.
Beck, Nathaniel, Jonathan N. Katz, R. Michael Alvarez, Geoffrey Garrett and Peter Lange. (1993) Government Partisanship, Labor Organization, and Macroeconomic Performance: A Corrigendum. American Political Science Review 87:945-948.
data(agl) summary(agl)
data(agl) summary(agl)
Cross-National panel data on the OECD countries containing information about economic performance, government partisanship and labor organization.
data(aglUn)
data(aglUn)
A data frame with 230 observations on the following 10 variables.
year
a numeric vector
country
a character vector
growth
the OECD growth rate
lagg1
An instrument for lagged growth rates constructed with an auxilary regression.
opengdp
weighted OECD demand
openex
weighted OECD export
openimp
weighted OECD import
leftc
"Left" cabinet composition
central
labor organization index
inter
interaction between leftc and central
This data frame differs from 'agl' only by the random omission of 10 rows of data. This is to created an unbalanced data version.
Alvarez, R. Michael, Geoffrey Garrett and Peter Lange. (1991) Government Partisanship, Labor Organization, and Macroeconomic Performance. American Political Science Review 85:539-56.
Beck, Nathaniel, Jonathan N. Katz, R. Michael Alvarez, Geoffrey Garrett and Peter Lange. (1993) Government Partisanship, Labor Organization, and Macroeconomic Performance: A Corrigendum. American Political Science Review 87:945-948.
data(aglUn) summary(aglUn)
data(aglUn) summary(aglUn)
A function to estimate panel-corrected standard errors. Data may contain balanced or unbalanced panels.
pcse(object, groupN, groupT, pairwise=FALSE)
pcse(object, groupN, groupT, pairwise=FALSE)
object |
A lm object containing the initial run of OLS. |
groupN |
A vector containing the cross-sectional group identifier for each observation. |
groupT |
A vector containing the time identifier for each observation. |
pairwise |
An optional logical flag indicating whether the X's used to estimate the "middle" matrix should be chosen in a pairwise fashion or casewise fashion. If pairwise, the correlation between observations $i$ and $j$ is based on the time periods common to $i$ and $j$. If casewise, the correlation between observations i and j is based on the largest rectangular subset of the data, i.e., $T_i$ = $T_j$ = $T^*$ for all $i$ and $j$ if casewise is selected. |
## see demo file.
## see demo file.
The package pcse contains a function to estimate panel-corrected standard errors. Data may contain balanced or unbalanced panels. This function summarizes the estimated results.
## S3 method for class 'pcse' summary(object, ...)
## S3 method for class 'pcse' summary(object, ...)
object |
An object of class "pcse." |
... |
Arguments passed to other functions. |
Delia Bailey <[email protected]> and Jonathan N. Katz <[email protected]> Maintainer: Delia Bailey <[email protected]>
Bailey, Delia and Jonathan N. Katz. (2011) Implementing Panel-Corrected Standard Errors in R: The pcse Package. Journal of Statistical Software, Code Snippets 42(1):1–11. http://www.jstatsoft.org/v42/c01/
## see demo file.
## see demo file.
The package pcse contains a function to estimate panel-corrected standard errors. Data may contain balanced or unbalanced panels. This function extracts the resulting variance covariance matrix.
vcovPC(x, ...) ## Default S3 method: vcovPC(x, groupN, groupT, pairwise=FALSE, ...)
vcovPC(x, ...) ## Default S3 method: vcovPC(x, groupN, groupT, pairwise=FALSE, ...)
x |
A lm object containing the initial run of OLS. |
groupN |
A vector containing the cross-sectional group identifier for each observation. |
groupT |
A vector containing the time identifier for each observation. |
pairwise |
An optional logical flag indicating whether the X's used to estimate the "middle" matrix should be chosen in a pairwise fashion or casewise fashion. If pairwise, the correlation between observations $i$ and $j$ is based on the time periods common to $i$ and $j$. If casewise, the correlation between observations i and j is based on the largest rectangular subset of the data, i.e., $T_i$ = $T_j$ = $T^*$ for all $i$ and $j$ if casewise is selected. |
... |
Further arguments passed to methods. |
Delia Bailey <[email protected]> and Jonathan N. Katz <[email protected]> Maintainer: Delia Bailey <[email protected]>
Bailey, Delia and Jonathan N. Katz. (2011) Implementing Panel-Corrected Standard Errors in R: The pcse Package. Journal of Statistical Software, Code Snippets 42(1):1–11. http://www.jstatsoft.org/v42/c01/
## see demo file.
## see demo file.