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
Finding a target variabel across datasets in the same directory*Hi, I've several datasets in the directory, and want to know which ones contain my variable of inter…
estpost with xtsumHi all I have used the command estpost sum esttab using nsw_12_summary_all.csv, cells("mean") to …
Fixed effects model with high rho and negative corr(u_i, Xb): a problem?I'm running some regression models with panel data from Brazilian municipalities (N = 64,708, Number…
Looking for files issuesHello everyone, So I am doing an assignment. Our professor gave us zipped .dta files to use in Stat…
How to draw bivariate random vector (v,u) which is bivariate normal, but with a correlation which depends on a third variable x?Dear all, I would like to simulate some data: a bivariate random vector (v,u) which is bivariate no…
Subscribe to:
Post Comments (Atom)
0 Response to using "program" command and applying the "program" created
Post a Comment