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
Panel data - dropping all observations after a switchHi everyone, I have panel data below (just one id shown), it is sorted by id and date I want to be …
Seeking a way to examine the sensitivity of one variable with respect to another (both a time series)Hi, this maybe a very rookie question, but many thanks for any help. I have a data like this Sta…
How to replace inconsistent identity code with the majority identity within 6 years?I have 140,000 firms for 2010-2015. I want to check whether the industrial code (indcode) is consist…
Generating a variable to count # of "ideal" in each category per observationDear all, I have three variables(idealFruitVeg ; idealfiber ; idealssbweek). Each variable can have…
sem vs gsem?Hi everyone. I want to use sem or gsem to evaluate the associations of different patterns of weight …
Subscribe to:
Post Comments (Atom)
0 Response to using "program" command and applying the "program" created
Post a Comment