Hello, Have a look at the plm package https://cran.r-project.org/web/packages/plm/index.html It has a convenient way to structure your data into panel according to some id.
Best regards, Jeremie On Wed, Jan 10, 2018 at 5:41 PM, deva d <devazresea...@gmail.com> wrote: > dear all, > > i need some help in structuring my data file for a hierarchical time series > analysis. > > can someone help please ? > > i have a 600 row database in the nature of a panel data, with 3 time series > values of interest. the data also has 4 classificatory variables comprising > a code for each entity in the panel, a value for time (year), and > classification of type of entity and a further sub-group of the type. > > i am unable to structure the data file for performing the hts analysis. > > thanks in advance. > > *....* > > *Deva* > > > ............... > > > > *in search of knowledge, everyday something is added ....* > > *in search of wisdom, everyday something is dropped ... an old Chinese > Proverb* > ::::::::::::::::::::::::: > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/ > posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Jérémie Juste [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.