pcse: Panel-Corrected Standard Error Estimation in R

Description Usage Arguments Examples

Description

A function to estimate panel-corrected standard errors. Data may contain balanced or unbalanced panels.

Usage

1
pcse(object, groupN, groupT, pairwise=FALSE)

Arguments

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.

Examples

1
## see demo file.

Example output



pcse documentation built on May 2, 2019, 9:16 a.m.