Hi,
I'm having trouble creating a directory for my do file or even retrieving the data I need to use. I believe the problem is with my Mac because before it was having an error even finding the pathway to my documents folder, so I had to change it to the desktop for it to half-way work.
These are my commands:
clear all
prog drop _all
capture log close
set more off
global datadir "/Users/C/desktop/ProblemSets"
global logdir "/Users/C/desktop/ProblemSets"
log using "$logdir/Ps1 log_new.smcl", replace
use "$datadir/HIV Testing Data.dta", clear
This is the result that appears:
. clear all
. prog drop _all
. capture log close
. set more off
.
. global datadir "/Users/C/desktop/ProblemSets"
. global logdir "/Users/C/desktop/ProblemSets"
.
. log using "$logdir/Ps1 log_new.smcl", replace
--------------------------------------------------------------------------------------------------------
name: <unnamed>
log: /Users/C/desktop/ProblemSets/Ps1 log_new.smcl
log type: smcl
opened on: 23 Sep 2019, 17:19:58
. use "$datadir/HIV Testing Data.dta", clear
file /Users/C/desktop/ProblemSets/HIV Testing Data.dta not found
r(601);
end of do-file
I'm having trouble creating a directory for my do file or even retrieving the data I need to use. I believe the problem is with my Mac because before it was having an error even finding the pathway to my documents folder, so I had to change it to the desktop for it to half-way work.
These are my commands:
clear all
prog drop _all
capture log close
set more off
global datadir "/Users/C/desktop/ProblemSets"
global logdir "/Users/C/desktop/ProblemSets"
log using "$logdir/Ps1 log_new.smcl", replace
use "$datadir/HIV Testing Data.dta", clear
This is the result that appears:
. clear all
. prog drop _all
. capture log close
. set more off
.
. global datadir "/Users/C/desktop/ProblemSets"
. global logdir "/Users/C/desktop/ProblemSets"
.
. log using "$logdir/Ps1 log_new.smcl", replace
--------------------------------------------------------------------------------------------------------
name: <unnamed>
log: /Users/C/desktop/ProblemSets/Ps1 log_new.smcl
log type: smcl
opened on: 23 Sep 2019, 17:19:58
. use "$datadir/HIV Testing Data.dta", clear
file /Users/C/desktop/ProblemSets/HIV Testing Data.dta not found
r(601);
end of do-file
Comment