Hi there,
I am running a series of meta analyses in a loop to produce forest plots. Code:
levels VariableName
foreach i in `r(levels)'{
metan beta_ se_ if VariableName =="`i'", lcols(month)
graph save "file_`i'", replace
}
However, the p value for the test of heterogeneity appears as p=0.000 and I've been asked for that to be changed to p<0.001.
I have read a previous thread about this (https://www.statalist.org/forums/for...in-forest-plot) and attempted to adapt the code suggested there but Stata produced the error "variable _EFFECT not found" so I've definitely done something wrong!
How would I get p=0.000 to display as p<0.001 in this instance?
I am using Stata 17.
Many thanks in advance,
Mel
I am running a series of meta analyses in a loop to produce forest plots. Code:
levels VariableName
foreach i in `r(levels)'{
metan beta_ se_ if VariableName =="`i'", lcols(month)
graph save "file_`i'", replace
}
However, the p value for the test of heterogeneity appears as p=0.000 and I've been asked for that to be changed to p<0.001.
I have read a previous thread about this (https://www.statalist.org/forums/for...in-forest-plot) and attempted to adapt the code suggested there but Stata produced the error "variable _EFFECT not found" so I've definitely done something wrong!
How would I get p=0.000 to display as p<0.001 in this instance?
I am using Stata 17.
Many thanks in advance,
Mel
Comment