I am new to R and I need to conduct a time-series, cross-sectional (TSCS) analysis in R (dynamic probit). I know how to run the model, but I need to tell R that I am dealing with TSCS data.
I have data for 44 countries (countries are both coded numerically and in character form in the data set), and for 52 years for each of these. E.g:
Angola 1950
Angola 1951
.
.
.
Benin 1950
Benin 1951
I have found the ts() command, but I am not sure if I have used it correctly. My code so far is:
outdata50time <- ts(data=outdata50, start=1950, end=2002)
Will that do the trick? Or do I need different classes for the countries?
Thanks for your help!