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
Understanding type of panelHi everyone, I have individual level data for 20 regions for 18 years. The question is to examine t…
egen for numeric variablesHi, I'm trying to concat two numeric variables whit the egen command, I know when it is used a strin…
Problem of missing observations in CAPM estimationI have following variables from raw data and I want to estimate the return of Stock PG using CAPM mo…
How to calculate days and hours between two datesHi, I am calculating days and hours between two dates (admission date/time and discharge date/time)…
DiDDear All, I have ran into several general issues whilst starting to work with DiD. The data that I …
Subscribe to:
Post Comments (Atom)
0 Response to A problem for conducting network meta regression by STATA
Post a Comment