Hi,
I am currently trying to complete the analysis for a dose-response meta-analysis using the glst command downloaded from SSC in Stata 13 using Windows 8.
I have written a do file with the required code and in the past have used ot without any problem on my current dataset.
After 2 months of not having run the file, I have over the past week tried to add more data to my dataset and I am no longer able to fully execute the commands.
Has somebody experienced any siilar issues with this command or may have any insight as to why suddenly the command may no longer working correctly?
Full details:
I have transformed my exposure variables using cubic splines. I try to save these transformed variables in a temporary file however as soon as I reach this step I get an error message stating:
file ssest_spline.dta could not be opened
r(603);
From this point onwards I am no longer able to proceed. I am clueless as to what I might be doing wrong and would appreciate any advice that anybody may have.
I have attched tha code that I am using below.
I hope I have specified everything that might be useful to understand what is going wrong!
Thank you!
I am currently trying to complete the analysis for a dose-response meta-analysis using the glst command downloaded from SSC in Stata 13 using Windows 8.
I have written a do file with the required code and in the past have used ot without any problem on my current dataset.
After 2 months of not having run the file, I have over the past week tried to add more data to my dataset and I am no longer able to fully execute the commands.
Has somebody experienced any siilar issues with this command or may have any insight as to why suddenly the command may no longer working correctly?
Full details:
I have transformed my exposure variables using cubic splines. I try to save these transformed variables in a temporary file however as soon as I reach this step I get an error message stating:
file ssest_spline.dta could not be opened
r(603);
From this point onwards I am no longer able to proceed. I am clueless as to what I might be doing wrong and would appreciate any advice that anybody may have.
I have attched tha code that I am using below.
Code:
gen logrr = log(rr) gen loguci = log(uci) gen loglci = log(lci) gen logse = ((loguci - loglci)/(2*invnorm(.975))) bysort id: gen dosec = dose - dose[1] mkspline doses = dose, nk(3) cubic **This is the step where the problem appears to be and I get the error message: mvmeta_make glst logrr doses1 doses2, cov(totalpersons cases) se(logse) pfirst(id study) saving(ssest_spline) replace by(id) names(b V) (note: file ssest_spline.dta not found) file ssest_spline.dta could not be opened r(603); preserve use ssest_spline, clear mvmeta b V , mm i2 capture estimates save mvmeta, replace restore estimates use mvmeta predictnl logrr_sp = _b[bdoses1]*(doses1) + _b[bdoses2]*(doses2-0) , ci(los his) gen ors = exp(logrr_sp) gen lbs = exp(los) gen ubs = exp(his) predictnl logrr_l = _b[dose]*dose gen orl = exp(logrr_l) twoway (line orl dose, sort lc(green) lw(thick) lp(-) ) (line ors lbs ubs dose, sort lw(thick medium medium) lc(orange black black) lp(l longdash longdash)) ,ytitle("Relative Risk") xtitle("LTPA Physical Activity (MET-h's/week)") scheme(s1mono)xlabel(0(5)60) xmtick(0(5)60) ymtick(.1(.3)1) ylabel(.1 .2 .3 .4 .5 .6 .7 .8 .9 1 , format(%3.2fc) angle(horiz)) legend(label(1 "Linear Model") label(2 "Cubic Spline Model") order(1 2) ring(0) pos(20) col(1) ) plotregion(style(none))
Thank you!
Comment