The metafor Package

A Meta-Analysis Package for R

User Tools

Site Tools


tips:models_with_or_without_intercept

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
tips:models_with_or_without_intercept [2020/03/19 14:25]
Wolfgang Viechtbauer [Models with Continuous Moderators]
tips:models_with_or_without_intercept [2020/10/31 08:46]
Wolfgang Viechtbauer
Line 5: Line 5:
 ==== Model With Intercept ==== ==== Model With Intercept ====
  
-The dataset is called ''dat.bcg''. The variables ''tpos and ''tneg'' in the dataset indicate the number of tuberculosis cases and non-cases in the treated (vaccinated) groups, respectively. Similarly, variables ''cpos and ''cneg'' indicate the number of cases and non-cases in the control (non-vaccinated) groups. Based on these four variables, the (log) risk ratios and corresponding sampling variances for the 13 studies can be obtained with:+The dataset is called ''dat.bcg''. The variables ''tpos'' and ''tneg'' in the dataset indicate the number of tuberculosis cases and non-cases in the treated (vaccinated) groups, respectively. Similarly, variables ''cpos'' and ''cneg'' indicate the number of cases and non-cases in the control (non-vaccinated) groups. Based on these four variables, the (log) risk ratios and corresponding sampling variances for the 13 studies can be obtained with:
 <code rsplus> <code rsplus>
 library(metafor) library(metafor)
tips/models_with_or_without_intercept.txt ยท Last modified: 2021/02/12 16:09 by Wolfgang Viechtbauer