Hi users,
I am trying to compute z scores for survey data using WHO macro (http://www.who.int/childgrowth/software/en/). However, I am repeatedly getting error that file could not be loaded despite presence of file in the folder.
When I check physically file `wfawho2007.dta' is in the "who2007_stata" folder. I cannot understand the reason for getting this error, is there anything that I need to write "Fill in the macro parameters" line or in the adopath line. The computer that I am working is a university networked computer. Can this be a source for error?
Thank you
I am trying to compute z scores for survey data using WHO macro (http://www.who.int/childgrowth/software/en/). However, I am repeatedly getting error that file could not be loaded despite presence of file in the folder.
Code:
/* Indicate to the Stata compiler where the who2007.ado file is stored*/ . adopath + "\\ad....\Documents\who2007_stata" [1] (BASE) "C:\Program Files (x86)\Stata13\ado\base/" [2] (SITE) "C:\Program Files (x86)\Stata13\ado\site/" [3] "." [4] (PERSONAL) "c:\ado\personal/" [5] (PLUS) "c:\ado\plus/" [6] (OLDPLACE) "c:\ado/" [7] "\ad.........\who2007_stata" /* Load the data file */ . use "\\ad.......\Documents\who2007_work\survey.dta", clear . /* generate the first three parameters reflib, datalib & datalab */ . gen str60 reflib="\\ad.....\Documents\who2007_stata\" . lab var reflib "Directory of reference tables" . . gen str60 datalib="\\ad.........\Documents\who2007_stata\" . lab var datalib "Directory for datafiles" . gen str30 datalab="survey" . lab var datalab "Working file" /* Fill in the macro parameters to run the command */ . who2007 reflib datalib datalab sex agemons ageunit weight height oedema sw Please wait, programme is running............. .............................................. file \\ad.........\Documents\who2007_stata\wfawho2007.dta not found r(601); end of do-file r(601);
Thank you
Comment