# NOT RUN {
x_1 <- rnorm( 100 )
x_2 <- rnorm( 100 ) + 0.5 * x_1
cross_levels <- c( "AT", "DE")
time <- seq(1:50)
time <- rep(time, 2)
geo_list <- list()
for(i in 1:length(cross_levels))
{ geo <- rep( cross_levels[i], 50 )
geo_list[[i]] <- geo }
geo <- unlist(geo_list)
geo <- as.data.frame(geo)
example_data <- do.call ( cbind, list( time, x_1, x_2))
example_data <- as.data.frame(example_data)
example_data <- cbind( geo,
example_data)
names(example_data) <- c("geo", "time", "x_1",
"x_2")
panel_correl( data = example_data,
cross.section = "geo",
time.variable = "time",
corr.threshold = 0.2,
autocorr.threshold = 0.5,
cross.threshold = 0.1)
# }
Run the code above in your browser using DataLab