unirootTest(x, group = NULL, time = NULL, data, test = "adf", combine = "choi", k = 0, lshort = TRUE)NULL, no groups are considered.NULL and group is not NULL, data are assumed temporally ordered within each group.
If both group and time are NULL, data are assumed temporally ordered.data.frame containing the variables to be differenced,
the group factor if group is not NULL, and the time factor if time is not NULL."adf" (Augmented Dickey-Fuller, see Said and Dickey, 1984; Banerjee et al., 1993)
or "kpss" (KPSS, see Kwiatkowski et al., 1992). Default is "adf"."choi" (Choi, 2001) or "demetrescu" (Demetrescu, 2006).
Ignored if group is NULL. Default is "choi".test="kpss". Default is 0.TRUE, the short version of the truncation lag parameter is used. Ignored if test="adf". Default is TRUE.data(agres)
unirootTest("NPATENT",group="COUNTRY",data=agres,k=1)
Run the code above in your browser using DataLab