# NOT RUN {
############################################
# Fit the dynamic threshold panel data
############################################
# Load data
data(Mena)
############################################
# Estimate the model
############################################
reg<-dtp(GDPPC ~ FDI+OPEN|INF|INF,Mena,index=c("pays","ann"),4,2,0.95,0.8,1,graph = TRUE)
summary(reg)
# }
Run the code above in your browser using DataLab