I'm conducting a network meta regression with package mvmeta, howwever, "too many variables sepcificed r(103)" was always reported. My code and data were followed:
foreach trt in A B C D E F {
if " `trt' "=="A" continue
gen y`trt' = log(r`trt'/(n`trt'-r`trt')) - log(rA/(nA-rA))
gen S`trt'`trt' = 1/r`trt' + 1/(n`trt'-r`trt') + 1/rA + 1/(nA-rA)
foreach trt2 in A B C D E F {
if " `trt2' "=="A" continue
if " `trt2' ">" `trt' " gen S`trt' `trt2' = 1/rA + 1/(nA-rA) if !mi(r`trt') & !mi(r`trt2')
}
}
Array
Related Posts with A problem for conducting network meta regression by STATA
Test to show a regressor is non stochastic?Other than producing and eyeballing a scatter diagram, is there a standard way to prove/discover tha…
Graphing one product verses an average of all other productsHi All, I am having trouble thinking how I can graph an average of two products ("Coca-Cola" and "t…
How to make a Difference in Differences GraphI want to make a graph showing parallel slopes for the following data. The variable REGION consists …
Count return clientsDear All, I would like to count the number of return clients in 2020 (the first occurrence/visit ei…
Reshape data long to wide but not normal wideHello, I want to reshape my data long to wide. So, I googled it and found this web page: https://s…
Subscribe to:
Post Comments (Atom)
0 Response to A problem for conducting network meta regression by STATA
Post a Comment