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
What estimation methods can endogenicity, heteroskedasticity, autocorrelation and fixed effects be solved without using GMM?Hello netizens of Stata forum. I have a panel of 13 countries and 8 years. I tried with the GMM but …
Ramsey Reset Test for single years vs whole data periodHi, I am running OLS regressions, firstly for 3 separate years (2006, 2010 and then 2015) and then …
Constraint function in optimize()Hello, I'm currently facing the following problem: I'm trying to minimize the variance of a portfol…
Panel data and regressing when the occurrence of a dummy variable may affect other occurrencesHello all, I am looking into how the number of times a person migrates affects their change in happ…
Fama&MacBeth: xtfmb function. Time-fixed effectsHello statalisters, My case is that of an unbalanced panel data composed by 25,714 companies ("cusi…
Subscribe to:
Post Comments (Atom)
0 Response to A problem for conducting network meta regression by STATA
Post a Comment