View source: R/transition_paths.R
transition_paths | R Documentation |
convergence.clubs
objectGiven a convergence.clubs
object (created by either findClubs
or mergeClubs
function), returns a list with transition paths for each
club.
transition_paths( clubs, include_unit_names = TRUE, output_type = c("list", "data.frame") )
clubs |
an object of class |
include_unit_names |
logical, if TRUE (the default) adds a column with unit names (only
if present in the |
output_type |
string indicating if the function should output a list or a data frame. Possible options are "list" and "data.frame", default is "list". |
If output_type=="list"
, a list of data frames, one for each club;
each data frame will contain transition paths for the units in the correspondent club.
If output_type=="data.frame"
, a data.frame.
Phillips, P. C.; Sul, D., 2007. Transition modeling and econometric convergence tests. Econometrica 75 (6), 1771-1855.
Phillips, P. C.; Sul, D., 2009. Economic transition and growth. Journal of Applied Econometrics 24 (7), 1153-1185.
findClubs
, Finds Convergence Clubs;
mergeClubs
, Merges a list of clubs created by findClubs
;
plot.convergence.clubs
, Plots transition paths from a convergence.clubs
object.
data("filteredGDP") # Cluster Countries using GDP from year 1970 to year 2003 clubs <- findClubs(filteredGDP, dataCols=2:35, unit_names = 1, refCol=35, time_trim = 1/3, cstar = 0, HACmethod = "FQSB") # Extract Transition Paths tp <- transition_paths(clubs) tp <- transition_paths(clubs, output_type = 'data.frame')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.