Dear Daniel,
Just create frequency tables of your variables:
table(a$indication_cor)
table(a$age_cor)
If studies were removed from the model fitting (because of missing data), then the actual frequencies used in the analyses might be smaller. You could then apply the same subsetting as was done in the analysis with:
table(a$indication_cor[b$not.na])
table(a$age_cor[b$not.na])
Best,
Wolfgang
-----Original Message-----
From: Daniel M?nsted Shabanzadeh [mailto:dmshaban at gmail.com]
Sent: Friday, 06 March, 2020 9:49
To: r-sig-meta-analysis at r-project.org; Viechtbauer, Wolfgang (SP)
Subject: Output in rma
Dear Wolfgang and network
I am doing a meta-regression in metafor?on transformed proportions with two categorical variables and once again having some problems in?getting the outcome right. Hope?some of you may know your?way through.?
In the print output?I see that 449 entries are included. How do I?obtain number of entries for each level in the variables?in the model?
Regards,
Daniel?
b<-rma(xi=compl_treat, ni=total, mods = ~indication_cor+age_cor, measure = "PAS", data=a, slab=study)