HOMTESTGLM {PDMIF}R Documentation

HOMTESTGLM

Description

This function tests homogeneity of the regression coefficients in heterogeneous generalized linear models with interactive effects.

Usage

HOMTESTGLM(X, Y, FAMILY, Nfactors, Maxit = 100, tol = 0.001)

Arguments

X

The (NT) times p design matrix, without an intercept where N=number of individuals, T=length of time series, p=number of explanatory variables.

Y

The T times N panel of response where N=number of individuals, T=length of time series.

FAMILY

A description of the error distribution and link function to be used in the model just like in glm functions.

Nfactors

A pre-specified number of common factors.

Maxit

A maximum number of iterations in optimization. Default is 100.

tol

Tolerance level of convergence. Default is 0.001.

Value

A list with the following components:

References

Ando, T. and Bai, J. (2015) A simple new test for slope homogeneity in panel data models with interactive effects. Economics Letters, 136, 112-117.

Examples

fit <- HOMTESTGLM(data2X,data2Y,binomial(link=logit),2,10,0.5)

[Package PDMIF version 0.1.0 Index]