Finding it difficult to work out how to separate the data. I have 2 variables - time and GDP. There are 478 observations, each of which count for a month of the year (1 observation = 1 month). How am I able to split the data into different sections to view both in-sample data and out-sample data separately?
I need to recreate 2 tables. Table 1 must contain data from 1980-2013 (in-sample period) and Table 2 must show data from 2014 to 2019 (out-sample period).
It is difficult to give specific advice without knowing more about the structure of your data. Please run the command
str(NameOfYourDataFrame)
with NameOfYourDataFrame replaced by the actual name of the table. Paste the result into a response on the forum and be sure to put lines with three back tics, ```, before and after the information you paste so that it will be formatted as code.