Usage
pcdtest(x, ...)
## S3 method for class 'panelmodel':
pcdtest(x, test=c("cd","sclm","lm"), w=NULL, ...)
## S3 method for class 'formula':
pcdtest(x, data, index=NULL, model=NULL, test=c("cd","sclm","lm"), w=NULL, ...)
Arguments
x
an object of class formula
or panelmodel
, describing the model to be tested
index
an optional numerical index, in case data
has to be formatted by plm.data
model
an optional character string indicating which type of model to estimate;
if left to NULL
, the original heterogeneous specification of Pesaran is used
test
the type of test statistic to be returned. One of "cd" for Pesaran's CD statistic,
"lm" for Breusch and Pagan's original LM statistic,
"sclm" for the scaled version of Breusch and Pagan's LM statistic
w
an $nxn$ matrix
describing proximity between observations, with $w_ij=a$
where $a$ is any number such that as.logical(a)=TRUE
, if $i,j$ are
neighbours, $0$ or any number $b$ such that as.logical(b)=F
...
further arguments to be passed on to plm
, such as
e.g. effect
or random.method