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
How to remove variable label from x axis using catplotHi I am using Stata 15 and trying to create a simple graph using catplot. The variable I am trying …
Help: Wald test & Regression output tableDear All Attached below is part of my dataset: Code: * Example generated by -dataex-. To install:…
landmark analysis differences between time-periodsHello everyone, I have a cohort with 1 group (no comparison group). I created a landmark analysis …
How to rename dummy variables based on category names?Hi, all. I have a data set with variable "town_id" indicating town id (such as 160, 155, 178, etc.)…
How can I covert Oaxaca-Decomposition coef. into an amount(dollar...)?I got the following results through oaxaca two-fold method. ---------------------------------------…
Subscribe to:
Post Comments (Atom)
0 Response to A problem for conducting network meta regression by STATA
Post a Comment