itersur | R Documentation |
Estimates a SUR model on a possibly unbalanced panel, as layed out in Zellner (1962) and Bronnenberg, Mahajan, and Vanhonacker (2000). Supports Praise-Winsten correction for auto-correlation in the residuals.
itersur( X, Y, index, method = "FGLS", maxiter = 1000, reltol = 10^-7, to.file = F )
X |
matrix of explanatory variables, possibly constructed using |
Y |
vector of dependent variable, possibly constructed using |
index |
|
method |
Choice of |
maxiter |
Maximum number of FGLS iterations (set to 1000 by default) |
returns on object of class "itersur"
with estimation results.
The functions \code{show} are used to obtain and print a summary of the results. The generic accessor function \code{coefficients} extracts the coefficients as a \code{data.frame}. An object of class \code{"itersur"} is an S4-class containing at least the following components, which can be accessed using the \code{@}-operator: \item{coefficients}{a \code{data.frame} with coefficients} \item{X}{the predictor matrix to estimate the final iteration of the model} \item{Y}{the dependent variable to estimate the final iteration of the model (unchanged for FGLS, transformed for Praise-Winsten.)} \item{index}{The indexing \code{data.frame}, with column 1 being the indicators for time periods, and column 2 being the indicators for cross-sectional units.} \item{iterations}{The number of iterations of the algorithm until convergence.} \item{bic}{The BIC for the model.} \item{predicted}{the fitted values} \item{resid}{the residuals, that is response minus fitted values.} \item{varcovar}{The variance-covariance matrix of the estimates.} \item{method}{The method used to estimat the model; one of code{"FGLS"} or \code{"FGLS-Praise-Winsten"}.} \item{rho_hat}{A numeric vector, indicating the estimated auto-correlation using method \code{"FGLS-Praise-Winsten"}. Zero if method \code{"FGLS"} is used.} \item{rho}{A numeric vector, indicating the (possibly remaining) auto-correlation in the residuals, by cross-sectional unit.}
Bronnenberg, B. J., Mahajan, V., & Vanhonacker, W. R. (2000). The Emergence of Market Structure in New Repeat-purchase Categories: The Interplay of Market Share and Retailer Distribution. Journal of Marketing Research, 37(1), 16-31.
Greene, W. H. (2003). Econometric Analysis. Pearson Education.
van Heerde, H. J., Leeflang, P. S., & Wittink, D. R. (2004). Decomposing the Sales Promotion Bump with Store Data. Marketing Science, 23(3), 317-334.
Zellner, A. (1962). An Efficient Method of Estimating seemingly Unrelated Regressions and Tests for Aggregation Bias. Journal of the American Statistical Association, 57(298), 348-368.
# See examples listed under attraction_data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.