Skip to content

Commit fee07e3

Browse files
committed
Fabry
1 parent 200883d commit fee07e3

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

Fabry/Fabry.Rmd

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: "Fabry"
3+
author: "GNtem2"
4+
date: "10/06/2021"
5+
output: html_document
6+
---
7+
8+
```{r setup, include=FALSE}
9+
knitr::opts_chunk$set(echo = TRUE)
10+
```
11+
12+
## R Markdown
13+
14+
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
15+
16+
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
17+
18+
```{r Data}
19+
library(tidyverse)
20+
21+
fabry<-readxl::read_xlsx("./FABRY_Enrolment_nov2018_update.xlsx")
22+
23+
glimpse(fabry[,c(13:20,24:25)])
24+
25+
```
26+
27+
28+
```{r Metaanalysis}
29+
library(metafor)
30+
df<-read.csv("FabryPrevalence.csv")
31+
32+
#subset and remove NA
33+
df2<- df%>%
34+
select(Author, Year, Country, Total, Fabry) %>%
35+
mutate(xi=Fabry,
36+
ni=Total,
37+
pi=xi/ni) %>% na.omit()
38+
df2 <- escalc(measure="PFT", xi=xi, ni=ni, data=df2, add=0)
39+
res <- rma(yi, vi, method="REML", data=df2, slab=paste(Author))
40+
41+
42+
#forest plot
43+
forest(res, transf=transf.ipft.hm, targs=list(ni=df2$ni), xlim=c(-1,1),refline=0.004,cex=.8, ilab=cbind(df2$Country, df2$xi, df2$ni),
44+
ilab.xpos=c(-.6,-.4,-.2),digits=3)
45+
46+
op <- par(cex=.75, font=2)
47+
#vertical position 11
48+
text(-1.0, 11, "Author ", pos=4)
49+
text(c(-.4,-.2, -.60), 11, c("Fabry", "Total", "Country"))
50+
text(.95, 11, "frequency [95% CI]", pos=2)
51+
par(op)
52+
```
53+
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.

Fabry/FabryPrevalence.csv

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Author,Year,Country,Total,Fabry,Male,FabryMale,Female,FabryFemale,,ICHincluded,TIAincluded,RestricyedInclusion,hypertension
2+
,,,,,,,,,,,,,
3+
rolfs,2005,Germany,721,28,432,21,289,7,,,,,
4+
brouns,2007,Belgium,103,0,64,0,39,0,,,,,
5+
baptista,2010,Portugal,493,6,300,3,193,3,,,,,
6+
brouns,2010,Belgium,1000,10,547,2,453,3,,,,,
7+
wozniak,2010,USA,154,1,154,1,,,,,,,
8+
lanthier,2017,Canada,365,1,,1,,0,,no,yes,,
9+
monash,2021,Australia,205,0,192,0,13,0,,yes,no,no,
10+
malavera,2020,Australia,58,0,35,0,23,1,,,,no,
11+
bersano,2016,Italy,33,1,,,,,,yes,yes,yes,

0 commit comments

Comments
 (0)