#Estimates from the COVID-19 data (Taketomi et al. (2021); Pranata et al. (2020))
y<-c(0.6881,0.5933,1.1756,0.5365,0.678,0.5878,0.4637,0.5247,1.2326,2.8904,1.1378)
#Proportions of males of each study
x<-c(56.4,63.0,52.0,49.0,62.1,49.5,82.0,58.0,47.9,45.0,62.0)
#Under the assumption that y is monotonically decreasing with respect to x,
#input decreasing=TRUE(the dataset is sorted by in decreasing order by x).
rml(y,x,decreasing=TRUE)
#If x and decreasing are default, the dataset is sorted by
#in the serial numbers of studies
#and RML in the output is under the assumption
#that y is monotonically increasing with respect to serial numbers.
rml(y)
#If x is default and decreasing=TRUE, the dataset is sorted by
#in decreasing the serial numbers of studies
#and RML in the output is under the assumption
#that y is monotonically decreasing with respect to serial numbers.
rml(y,decreasing=TRUE)
Run the code above in your browser using DataLab