Hello,
I created this program, which I am trying to apply in the code later:
program fixK
renvars q11-q20 , prefix(temp)
rename tempq11 q1
rename tempq12 q2
rename tempq13 q3
rename tempq14 q4
rename tempq15 q5
rename tempq16 q6
rename tempq17 q7
rename tempq18 q8
rename tempq19 q9
rename tempq20 q10
end
This program was later applied to:
import excel "C:\Users\name\Desktop\folder\file.xlsx", sheet("Sheet1") firstrow clear
fixK
renvars * , prefix(a_)
When I run the "program" command, it runs fine. However, when I run "fixK" command later to apply to the dataset, it gives me an error message saying "variable tempq11 is not found (r111)".
I need to give the dataset a set of temp numbers because while trying to merge two datasets, I realized that one of the datasets had numberings off. Please help.
Thank you so much!
Related Posts with using "program" command and applying the "program" created
estout: Use \tabularnewline instead of \\ at the end of linesThe question is in the title :-) Is it possible to make estout use \tabularnewline instead of \\ for…
Incomplete Data Pull using georoute CommandI am calculating driving distances using the georoute command with decimal degree coordinates. When …
Renaming graph labelsFor the bar graphs that are created using the data below, I am having trouble renaming the macro var…
Handling of out of range valuesDear All, I've just found that the following code does not produce an error, while I anticipated it…
help with -expand-Dear statalist, I have a set of data which spans from 2019 to 2020, for some firms, the data only h…
Subscribe to:
Post Comments (Atom)
0 Response to using "program" command and applying the "program" created
Post a Comment