[R] Model studies in one analysis using treatment as a five level moderator in a meta-regression

PIKAL Petr petr.pikal at precheza.cz
Tue Jun 27 08:37:28 CEST 2017


Hi

You could try to ask your question on Stackexchange, maybe somebody will answer it. This list is dedicated to helping with R code not to teaching statistics (and you did not express any direct question about the code).

Anyway, you should complain about your statistics department.

Cheers
Petr

> -----Original Message-----
> From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Jay Zola
> Sent: Monday, June 26, 2017 11:44 PM
> To: Vito Michele Rosario Muggeo <vito.muggeo at unipa.it>
> Cc: r-help at r-project.org
> Subject: Re: [R] Model studies in one analysis using treatment as a five level
> moderator in a meta-regression
>
> Dear Vito,
>
> Thank you for your reply. I tried to contact the statistics departement
> numerous times, but did not receive any reply. That is why I started to look on
> the internet for help.
>
> Yours sincerely,
>
> Jay
>
> Verstuurd vanaf mijn iPhone
>
> > Op 26 jun. 2017 om 22:05 heeft Vito Michele Rosario Muggeo
> <vito.muggeo at unipa.it> het volgende geschreven:
> >
> > hi Jay,
> > Consult a local statistician. Statistics is not you think is (namely simple
> computations, R and probably plotting..).
> >
> > regards,
> > vito
> >
> >
> >
> > Jay Zola <jayjay.1988 at hotmail.nl> ha scritto:
> >
> >> Hello,
> >>
> >>
> >> I am medical student, writing a meta-analysis on complication and
> reoperation rates after the five most common treatments of distal radius
> fractures. I have been busy with the statistics for months by my self, but find it
> quite hard since our classes were very basic. Now I want to compare the
> treatment modalities to see if there are significant differences. Using R I was
> able to synthesize the complication rates and reoperation rates for each
> treatment method. But I never had any R course and managed by trial and
> error, so the code probably doesn't look that great. Someone told me I could
> best model the data in one analysis using treatment as a five level moderator in
> a meta-regression. Can some help me with the R code to do this? Your help
> would be very much appreciated.
> >>
> >>
> >> Thank you,
> >>
> >>
> >> Jay
> >>
> >>
> >> Study| Event Type| Treatment| Number of Events (n)| N| n/N|
> >>
> >> Kumaravel| Complications| EF| 3| 23| 0,1304348|
> >>
> >> Franck| Complications| EF| 2| 20| 0,1|
> >>
> >> Schonnemann| Complications| EF| 8| 30| 0,2666667|
> >>
> >> Aita| Complications| EF| 1| 16| 0,0625|
> >>
> >> Hove| Complications| EF| 31| 39| 0,7948718|
> >>
> >> Andersen| Complications| EF| 26| 75| 0,3466667|
> >>
> >> Krughaug| Complications| EF| 22| 75| 0,2933333|
> >>
> >> Moroni| Complications| EF| 0| 20| 0|
> >>
> >> Plate| Complications| IMN| 3| 30| 0,1|
> >>
> >> Chappuis| Complications| IMN| 4| 16| 0,25|
> >>
> >> Gradl| Complications| IMN| 12| 66| 0,1818182|
> >>
> >> Schonnemann| Complications| IMN| 6| 31| 0,1935484|
> >>
> >> Aita| Complications| IMN| 1| 16| 0,0625|
> >>
> >> Dremstrop| Complications| IMN| 17| 44| 0,3863636|
> >>
> >> Wong| Complications| PC| 1| 30| 0,0333333|
> >>
> >> Kumaravel| Complications| PC| 4| 25| 0,16|
> >>
> >>
> >> Dataset on my dropbox:
> >>
> https://urlsand.esvalabs.com/?u=https%3A%2F%2Fwww.dropbox.com%2Fs%2F
> j
> >>
> 1urqzr99bt76ip%2FBasics%2520excel%2520file%2520complication%2520and
> %2
> >> 520reoperation%2520rate.xlsx%3Fdl%3D0&e=541e9c83&h=065e9ef9&f=y
> >>
> >> Basics excel file complication and reoperation
> >>
> rate.xlsx<https://urlsand.esvalabs.com/?u=https%3A%2F%2Fwww.dropbox.c
> >>
> om%2Fs%2Fj1urqzr99bt76ip%2FBasics%2520excel%2520file%2520complicatio
> n
> >>
> %2520and%2520reoperation%2520rate.xlsx%3Fdl%3D0&e=541e9c83&h=065e
> 9ef9
> >> &f=y>
> >>
> https://urlsand.esvalabs.com/?u=http%3A%2F%2Fwww.dropbox.com&e=541e
> 9c
> >> 83&h=4bc36151&f=y
> >> Shared with Dropbox
> >>
> >>
> >>
> >>
> >> library(meta)
> >> library(stargazer)
> >> library(foreign)
> >>
> >> All <-read.spss("C:\\Users\\313635aa.STUDENT\\Desktop\\Meta-Analyse
> >> Complications and Reoperations.sav",to.data.frame = T,
> >> use.value.labels = T) All <- na.omit(All)
> >>
> >> Complications <- All[which(All[,"Event_Type"] == "Complications"),]
> >> Re_operation <- All[which(All[,"Event_Type"] == "Reoperations"),]
> >>
> >> EF <- All[which(All[,"Treatment"] == "EF"),] IMN <-
> >> All[which(All[,"Treatment"] == "IMN"),] pc <-
> >> All[which(All[,"Treatment"] == "PC"),] KW <-
> >> All[which(All[,"Treatment"] == "KW"),] VPO <-
> >> All[which(All[,"Treatment"] == "VPO"),]
> >>
> >> EF_C <- EF[which(EF[,"Event_Type"] == "Complications"),] EF_R <-
> >> EF[which(EF[,"Event_Type"] == "Reoperations"),]
> >>
> >> IMN_C <- IMN[which(IMN[,"Event_Type"] == "Complications"),] IMN_R <-
> >> IMN[which(IMN[,"Event_Type"] == "Reoperations"),]
> >>
> >> pc_C <- pc[which(pc[,"Event_Type"] == "Complications"),] pc_R <-
> >> pc[which(pc[,"Event_Type"] == "Reoperations"),]
> >>
> >> KW_C <- KW[which(KW[,"Event_Type"] == "Complications"),] KW_R <-
> >> KW[which(KW[,"Event_Type"] == "Reoperations"),]
> >>
> >> VPO_C <- VPO[which(VPO[,"Event_Type"] == "Complications"),] VPO_R <-
> >> VPO[which(VPO[,"Event_Type"] == "Reoperations"),]
> >>
> >> Output <- function(x, y, k.min=10){
> >> file <- metaprop(Events_n, N, Study_ID, data = x)
> >>
> >> forest.meta(file, studlab = T, pooled.totals = T, bysort = F)
> >>
> >> dev.copy2pdf(file=y, width = 11.69, height = 8.27)
> >> print(file)
> >> }
> >>
> >> R code on my dropbox:
> >>
> https://urlsand.esvalabs.com/?u=https%3A%2F%2Fwww.dropbox.com%2Fs%2F
> 6
> >>
> 7pnfpi10qu110v%2FR%2520code%2520voor%2520forrest%2520en%2520funn
> el%25
> >> 20plots.rtf%3Fdl%3D0&e=541e9c83&h=1df77562&f=y
> >>
> >> [https://urlsand.esvalabs.com/?u=https%3A%2F%2Fcfl.dropboxstatic.com%
> >>
> 2Fstatic%2Fimages%2Ficons128%2Fpage_white_word.png&e=541e9c83&h=b0
> ed7
> >>
> c54&f=y]<https://urlsand.esvalabs.com/?u=https%3A%2F%2Fwww.dropbox.co
> >>
> m%2Fs%2F67pnfpi10qu110v%2FR%2520code%2520voor%2520forrest%2520e
> n%2520
> >> funnel%2520plots.rtf%3Fdl%3D0&e=541e9c83&h=1df77562&f=y>
> >>
> >> R code voor forrest en funnel
> >> plots.rtf<https://urlsand.esvalabs.com/?u=https%3A%2F%2Fwww.dropbox.c
> >>
> om%2Fs%2F67pnfpi10qu110v%2FR%2520code%2520voor%2520forrest%2520
> en%252
> >> 0funnel%2520plots.rtf%3Fdl%3D0&e=541e9c83&h=1df77562&f=y>
> >>
> https://urlsand.esvalabs.com/?u=http%3A%2F%2Fwww.dropbox.com&e=541e
> 9c
> >> 83&h=4bc36151&f=y
> >> Shared with Dropbox
> >>
> >>
> >>
> >>
> >>
> >>
> >>    [[alternative HTML version deleted]]
> >>
> >> ______________________________________________
> >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> >>
> https://urlsand.esvalabs.com/?u=https%3A%2F%2Fstat.ethz.ch%2Fmailman%
> >> 2Flistinfo%2Fr-help&e=541e9c83&h=16efca0d&f=y
> >> PLEASE do read the posting guide
> >> https://urlsand.esvalabs.com/?u=http%3A%2F%2Fwww.R-
> project.org%2Fpost
> >> ing-guide.html&e=541e9c83&h=0c678195&f=y
> >> and provide commented, minimal, self-contained, reproducible code.
> >
> >
> >
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

________________________________
Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou určeny pouze jeho adresátům.
Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě neprodleně jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie vymažte ze svého systému.
Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
Odesílatel e-mailu neodpovídá za eventuální škodu způsobenou modifikacemi či zpožděním přenosu e-mailu.

V případě, že je tento e-mail součástí obchodního jednání:
- vyhrazuje si odesílatel právo ukončit kdykoliv jednání o uzavření smlouvy, a to z jakéhokoliv důvodu i bez uvedení důvodu.
- a obsahuje-li nabídku, je adresát oprávněn nabídku bezodkladně přijmout; Odesílatel tohoto e-mailu (nabídky) vylučuje přijetí nabídky ze strany příjemce s dodatkem či odchylkou.
- trvá odesílatel na tom, že příslušná smlouva je uzavřena teprve výslovným dosažením shody na všech jejích náležitostech.
- odesílatel tohoto emailu informuje, že není oprávněn uzavírat za společnost žádné smlouvy s výjimkou případů, kdy k tomu byl písemně zmocněn nebo písemně pověřen a takové pověření nebo plná moc byly adresátovi tohoto emailu případně osobě, kterou adresát zastupuje, předloženy nebo jejich existence je adresátovi či osobě jím zastoupené známá.

This e-mail and any documents attached to it may be confidential and are intended only for its intended recipients.
If you received this e-mail by mistake, please immediately inform its sender. Delete the contents of this e-mail with all attachments and its copies from your system.
If you are not the intended recipient of this e-mail, you are not authorized to use, disseminate, copy or disclose this e-mail in any manner.
The sender of this e-mail shall not be liable for any possible damage caused by modifications of the e-mail or by delay with transfer of the email.

In case that this e-mail forms part of business dealings:
- the sender reserves the right to end negotiations about entering into a contract in any time, for any reason, and without stating any reasoning.
- if the e-mail contains an offer, the recipient is entitled to immediately accept such offer; The sender of this e-mail (offer) excludes any acceptance of the offer on the part of the recipient containing any amendment or variation.
- the sender insists on that the respective contract is concluded only upon an express mutual agreement on all its aspects.
- the sender of this e-mail informs that he/she is not authorized to enter into any contracts on behalf of the company except for cases in which he/she is expressly authorized to do so in writing, and such authorization or power of attorney is submitted to the recipient or the person represented by the recipient, or the existence of such authorization is known to the recipient of the person represented by the recipient.


More information about the R-help mailing list