Dear all,
I have a problem when using the local and global macro.
When I set up a local macro based on variable names, then display it, what stored in the local is the data in the first row instead of the variable names. Same thing happened to global macro. The data was imported from excel file, I tried .csv file as well, didn't work either. Any idea how can I solve this?
code for importing data:
import excel using Indicator.xlsx, sheet("Sheet2") first clear
code and output for setting up local macro for all variables: Array
As shown above, the local macro stored the values of the first row of data, instead of the variable names. I tried select a list of variables manually to set up the local, same thing happened.
Will appreciate it if I can get help on this.
Many thanks,
Craig Yang
Related Posts with Local and global macro are not capturing variables' names but the values in the first row
Linear panel data: imposing MA(6) correlation errorsHello Statalist! I'm doing an exercise from Microeconometrics Using Stata, by Cameron and Trivedi, E…
Not displaying the F-Statistics and and Prob value when using robust commandDear Statalist, I am having an balanced panel data set (banks profitability determinants factors) a…
Marginsplot not workingI would like to display a plot with the average marginal effect of nb_ygsibs5 with 95% CIs. This is…
time variable mistakeHi, I have a balanced panel data set with data, for each cross-section, up until 2016 (i=10, t=147)…
Checking for Hetro in Longitudinal (Panel) DataGood Day, I am trying to check for hetro issue in my longitudinal data where the N is large and P is…
Subscribe to:
Post Comments (Atom)
0 Response to Local and global macro are not capturing variables' names but the values in the first row
Post a Comment