<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mohamad Hasan on Medium]]></title>
        <description><![CDATA[Stories by Mohamad Hasan on Medium]]></description>
        <link>https://medium.com/@shakilmohamad7?source=rss-26bc63682adf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dfMd1Mx0D6pqApLC.jpg</url>
            <title>Stories by Mohamad Hasan on Medium</title>
            <link>https://medium.com/@shakilmohamad7?source=rss-26bc63682adf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 02:48:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shakilmohamad7/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Is Plagiarism or Fraud Acceptable?]]></title>
            <link>https://shakilmohamad7.medium.com/is-plagiarism-or-fraud-acceptable-depending-on-who-are-you-yes-a-case-study-df0749e30b3a?source=rss-26bc63682adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/df0749e30b3a</guid>
            <category><![CDATA[plagiarism]]></category>
            <category><![CDATA[fraud]]></category>
            <category><![CDATA[spring-nature]]></category>
            <category><![CDATA[critical-care]]></category>
            <category><![CDATA[bmc]]></category>
            <dc:creator><![CDATA[Mohamad Hasan]]></dc:creator>
            <pubDate>Thu, 19 Jan 2023 03:30:35 GMT</pubDate>
            <atom:updated>2024-03-31T17:01:02.992Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Is Plagiarism or Fraud Acceptable? YES. Critical Care, a SpringNature Journal, will waive and allow plagiarism and fraud if one maintains a strong relationship with the journal&#39;s chief editor ‘Jean-Louis Vinc’</strong>.</h3><p><strong><em>Pierre Hausfater (</em></strong><a href="https://www.linkedin.com/in/hausfater-pierre-630303a/"><strong>Linkedin</strong></a><strong><em> [Sorbonne University]) committed fraud and plagiarism, and the </em>Critical Care chief<em> editor </em>Jean-Louis Vinc (</strong><a href="https://www.linkedin.com/search/results/all/?fetchDeterministicClustersOnly=true&amp;heroEntityKey=urn%3Ali%3Afsd_profile%3AACoAABdKkhIBOimX4fWprG7FURDIqrhKsX1GJZQ&amp;keywords=jean-louis%20vincent&amp;origin=RICH_QUERY_SUGGESTION&amp;position=0&amp;searchId=37eac924-9fed-4e4f-806b-7dafc89e9b66&amp;sid=g.L&amp;spellCorrectionEnabled=false"><strong>Linkedin</strong></a><strong>) and his ethical team led by Tim Kersjes (</strong><a href="https://www.linkedin.com/in/timkersjes/"><strong>Linkedin</strong></a><strong>), head of the journal’s ethics committee, helped to cover up the fraud.</strong></p><p><em>In theory, every scientist and </em>the <em>scientific community recognize</em>s<em> plagiarism</em> or fraud<em> as unacceptable and punishable. However, in reality, some scientists and institutions practice and even encourage plagiarism</em> and fraud<em>. Almost all the time the victims are generally young researchers. Some ethics committees that are established apparently may seem working to ensure ethical guidelines are properly maintained </em>but <em>are not necessarily there to ensure ethics but rather support and help some established researchers to validate their </em>fraud<em>. I will expose a publication in which my work has been plagiarized, however, when I tried to solve the disputes and claimed my work</em>,<em> the authors</em>’<em> Journal, and COPE</em> <em>(Committee on Publication Ethics) did very little</em> to nothing<em>.</em></p><p>Colonialism involved the exploitation and theft of resources from other nations, with some believing that it is a thing of the past. However, their progeny and shadow and effects of colonialism still exist in different forms today. This includes its influence in academia and research, as well.</p><p><em>The publication I am referring to is ‘</em><strong><em>Monocyte distribution width (MDW) performance as an early sepsis indicator in the emergency department: comparison with CRP and procalcitonin in a multicenter international European prospective study’ (</em></strong>Hausfater, P. <em>et al.; </em><a href="https://doi.org/10.1186/s13054-021-03622-5">https://doi.org/10.1186/s13054-021-03622-5</a><a href="https://pubpeer.com/publications/E98F4DDBA11ADB88F05BF41CC34413?utm_source=Chrome&amp;utm_medium=BrowserExtension&amp;utm_campaign=Chrome"> 1 comment on PubPeer (by: M. S. Hasan, Devosia Epidermidihirudinis)</a><a href="https://pubpeer.com/publications/E98F4DDBA11ADB88F05BF41CC34413?utm_source=Chrome&amp;utm_medium=BrowserExtension&amp;utm_campaign=Chrome"> 1 comment on PubPeer (by: M. S. Hasan, Devosia Epidermidihirudinis)</a><a href="https://pubpeer.com/publications/E98F4DDBA11ADB88F05BF41CC34413?utm_source=Chrome&amp;utm_medium=BrowserExtension&amp;utm_campaign=Chrome"> 1 comment on PubPeer (by: M. S. Hasan, Devosia Epidermidihirudinis)</a><a href="https://pubpeer.com/publications/E98F4DDBA11ADB88F05BF41CC34413?utm_source=Chrome&amp;utm_medium=BrowserExtension&amp;utm_campaign=Chrome"> 1 comment on PubPeer (by: M. S. Hasan, Devosia Epidermidihirudinis)</a> <strong><em>).</em></strong></p><p>This article serves as a noteworthy example of how certain scientific communities engage in, accept, and actively support unethical practices such as plagiarism and fraud. Despite the clear presence of extensive plagiarism in the article, both the authors and the journal editor were aware of this issue but chose to overlook it. The Committee on Publication Ethics (COPE) even suggested that the article be returned to the authors’ institution for resolution, stating that it is crucial to adhere to COPE’s guidelines. However, as of today the journal has not taken any actions based on this recommendation in addressing the plagiarism and fraud.</p><p><em>Before, going into the details, I want to introduce that there are five parties involved in this dispute. 1) Mohamad Hasan (Myself), 2) </em><a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Liliana-Tejidor"><em>Liliana Tejidor</em></a><em> (Author), 3) </em><a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Pierre-Hausfater"><em>Pierre Hausfater</em></a><em> (the corresponding author of the disputed article), 4) Critical Care journal (SpringNature entity), Publishing Editor Barbara Pedrotti, and Research Integrity Adviser Maja Choma, and 5) COPE (Committee on Publication Ethics).</em></p><p>I was an employee at Beckman Coulter, Inc (a diagnostic-pharma company) from February 2019 to September 2020. During my tenure, I have been involved with many projects, including the clinical trial this manuscript is based on, called European Confirmatory Trial. This publication is one of many projects and publications under the same umbrella of <strong>SEPSIS.</strong> I had been always a significant contributor and statistician to <strong>SEPSIS </strong>projects.</p><p>I was the only statistician engaged in this particular study from the beginning of the patients’ enrollment to the end of the study. <strong>I spent at least 600 hours as a statistician to support and successfully complete the study</strong>. This includes a comprehensive interim (early look) data analysis and final data analysis in addition to the interpretation of the statistical results and clarification and guidance during manuscript drafting. All tables and figures in this paper and the corresponding supplementary documents are my direct contribution. None of the authors of the manuscript has expertise or be able to produce/reproduce the work.</p><p>When I left the company in September 2020, a solid draft was completed. In fact, the first draft was completed by end of the July 2020. I was again the only statistician who participated in the early discussions and meetings and provided my input and interpretation to solidify the manuscript draft. <strong>There were generally four people who participated in those meetings: </strong><a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Pierre-Hausfater"><strong>Pierre Hausfater</strong></a><strong>, </strong><a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Neus-Robert_Boter"><strong>Neus Robert Boter</strong></a><strong>, </strong><a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Liliana-Tejidor"><strong>Liliana Tejidor</strong></a><strong>, and myself</strong>. Indeed, these are the four scientific contributors to this publication. The inclusion of the rest of the authors might not even satisfy the International Committee of Medical Journal Editors (ICMJE) guidelines.</p><p>Unfortunately, when the paper was published on June 30, 2021, I discovered myself nowhere as an author. The other authors, especially <a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Pierre-Hausfater">Pierre Hausfater</a> and <a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Liliana-Tejidor">Liliana Tejidor</a> (Project Lead, Beckman employee), never communicated with me in this regard. I did not receive a single email or phone call regarding this publication after leaving the company. They never asked me whether they could remove my name from the authorship or put in the acknowledgment section. <strong>They used all of my work to publish this paper, but they completely removed my name without my consent,</strong> <strong>although this paper could not have even been started in the first place without using my work</strong>. Removing my name could be retaliation because I left the company.</p><p>Besides, they also went out of their way to lie! It is stated in the manuscript that <strong>SAS 9.4 (SAS Institute, Cary, NC) statistical program was used for Data analyses and they also mentioned in the contribution section that the Data analysis was completed by PH, LT, LV, MC, CM, and NRB</strong>, which is a blatant lie! None of the authors has expertise in statistics or SAS (a specialized statistical software). It is I who only know the SAS and conducted the data analysis.</p><p>As soon as I discovered my name had been omitted from the publication, I communicated via email to the corresponding author <a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Pierre-Hausfater"><strong>Pierre Hausfater</strong></a>. <a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Pierre-Hausfater"><strong>Pierre Hausfater</strong></a><strong> </strong>replied to me as “…<strong>Beckman Coulter has been decided internally, with the consideration that we had to limit the number compared to co-authorship from the 2 participating countries. All other contributors have been placed in the acknowledgment section…</strong>”. How ridiculous the reasoning is! Also, this is a serious violation of ICMJE (International Committee of Medical Journal Editors) and scientific ethics. By the ICMJE authorship decisions should be based on scientific contribution not the number of authors.</p><p>At the same time, <a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Liliana-Tejidor"><strong>Liliana Tejidor</strong></a><strong> </strong>contacted me as ‘…<strong>I received a copy of the email you sent Dr. Hausfater and wanted to let you know that it was not his final decision but rather mine.</strong> <strong>He had let me know that we were restricted to 2–3 Beckman authors maximum only…’. </strong>Again <a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Pierre-Hausfater"><strong>Pierre Hausfater</strong></a> or none has the right to remove any authors after the research work has been completed and authorship should be based on science, not someone’s favoritism.</p><p>I requested them to take the necessary steps to make the correction, but the authors did nothing.</p><p>I then communicated with the journal editor <strong>Barbara Pedrotti</strong> and explained the background and the situation. I also pointed out that the manuscript contains false claims that <strong>SAS 9.4 (SAS Institute, Cary, NC) statistical program was used for data analyses and Data analysis was completed by PH, LT, LV, MC, CM, and NRB in the authors’ contribution section. These claims are contradictory </strong>because none of the authors has expertise in statistics or SAS. The obvious proof is that there is not a single figure or table in this paper that was used or is the outcome of their data analysis. All are my work. If they were the analyst, then where are their work in the paper?</p><p>After back-and-forth communication with editors, the authors finally agreed to include me in the paper; however, they disagreed to give me credit for my contribution and wanted to keep the <strong>false statement</strong> ‘<strong>Data analysis was completed by PH, LT, LV, MC, CM, and NRB’</strong>.</p><p>I initially thought the journal is genuinely trying to solve the dispute. However, as time passed, it became clear to me that the editors and the journal’s ethics committee were negotiating behind the door and helping the authors to cover up these unethical acts. They also came up with several attempts to validate this unethical act.</p><p>1) They invented a twisted truth as ‘I d<strong>id statistical data analysis and they did data analysis, hence</strong> everyone is under <strong>data analysis’. Unfortunately, they failed to recognize if anyone thinks data analysis and statistical data analysis are two separate things for this publication then why not propose two terms in the contribution section instead of one term? This statement is also contradictory to what they mentioned in the manuscript. </strong>I further asked them to show their work in the manuscript but never received any replies. They just ignored my request as if they can whatever they want.</p><p>2) The journal came up with a lying statement “After the publication of this work it was noticed that author Mohamad Hasan was not included in the author list”. As I quoted earlier from the email communication my name was removed because according to them there were so many authors!</p><p>Later I found that the editor’s decisions are heavily influenced by the pre-existing relationship between the editor and the corresponding author <a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Pierre-Hausfater"><strong>Pierre Hausfater</strong></a>. In fact, <a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Pierre-Hausfater"><strong>Pierre Hausfater</strong></a><strong> </strong>has a very strong personal relationship with many of the people of the journal and thus journal did every favorable possible action to save the author. To understand more one can refer to the link where the journal editor and <a href="https://ccforum.biomedcentral.com/articles/10.1186/s13054-021-03622-5#auth-Pierre-Hausfater"><strong>Pierre Hausfater</strong></a> are giving a talk. Unfortunately, the author’s talk is based on my work. <a href="https://www.beckmancoulter.com/en/learning-and-events/webinars/hematology-webinars/power-of-early-recognition-of-severe-infection-and-sepsis">https://www.beckmancoulter.com/en/learning-and-events/webinars/hematology-webinars/power-of-early-recognition-of-severe-infection-and-sepsis</a></p><p>As I mentioned earlier all of the above discussions and decisions occurred behind the door without giving me any opportunity to agree or disagree. The editors and the authors came up with these decisions and prepared a form and asked me just to sign if I want to be an author otherwise they will keep the manuscript as it is. Can anyone imagine how tyrannical is this? Throughout the investigation process, the authors’ and the editor’s attitude was as if they are doing me a favor by making me an author.</p><p>According to the COPE (<a href="https://publicationethics.org/files/authorship-c-addition-after-publication-cope-flowchart.pdf">https://publicationethics.org/files/authorship-c-addition-after-publication-cope-flowchart.pdf</a>), the editors should not enter into dispute; instead, authorship disputes should be resolved through mutual discussions and agreements among authors, not the discussion between some authors and editors. However, the editor entered into the dispute and guided the authors on how to cover up these unethical acts.</p><p><em>Finally, after several failed attempts and frustration, I </em>told them<em> I don’t want to be an author</em>.<em> </em>For ethical reasons I also asked them to remove my name from the acknowledgment as I have not reviewed the final content of the manuscripts. <em>The Journal Editor </em>even <em>denied to remove my name from the acknowledgment section, although I never consented to keep my name anywhere in the article, none was even communicated in this regard. Every good journal requires permission from a person before using anyone’s name, even if the purpose is for acknowledgment only. But the editor ignored that important part too! The editor kept stressing that </em>I <em>was listed in the acknowledgment section</em> for my work<em> again and again. In other words, the editor is saying plagiarism and </em>fraud<em> are not unethical as long as you acknowledge the contribution! Someone also does not need permission to be acknowledged either.</em> I strongly believe the editor could not dare to remove my name because then the publication will be invalid as all the results are my work.</p><p>From the beginning, I never felt the Journal was genuinely helping me to resolve the issue instead of wasting time by lingering decisions. the Journal was proactively helping the authors to cover up this unethical behavior after knowing everything. For example, the editor never updated me on the decision when I filed the complaint. When I emailed to know the status after a few weeks, the editor replied the complaint was already closed.</p><p><em>Therefore, I contacted the COPE. COPE</em> took 1 solid year for the <em>investigation</em>. After requesting so many times just for an update, COPE finally <em>recommended the journal and the authors send the publication back to the institution to resolve the dispute. However, the journal and the authors ignored the recommendation and did nothing.</em></p><p><em>Although COPE made a recommendation, I expected a better outcome than only this recommendation from COPE. I did not feel that the COPE decision was unbiased. COPE did not take into account any of my evidence at all</em>. <em>When I complained to the COPE, I also attached a file, and later I provided our email communication between the authors and the journal and pointed out that the editors’ response was partially true. The editor intentionally hid information. However, COPE unfortunately ignored any of the evidence.</em></p><p><em>I emailed the COPE, according to its guidelines, if the editor should be neutral in this situation. Surprisingly, COPE could not find violations of its guidelines by the editor even though the editor acknowledged the violation in the response</em> to COPE request<em>. I was ignored and never received any response</em> from the COPE<em>. Unfortunately, it seems COPE feels it’s safer to be sided with a famous journal than do true justice. </em>It could be COPE did nothing the whole year and was undecisive because a famous journal is involved but could not completely deny my claim as the proof of fraud is obvious<em>.</em></p><p><em>Is my situation unique? The answer is no. Many young researchers </em>are<em> fac</em>ing<em> these </em>kinds of <em>problems </em>every day <em>and almost all of them decide to keep silent to avoid </em>unanticipated<em> scary futures in addition to </em>facing unthinkable<em> racism and </em>discrimination<em>. However, I decided to expose these people and I hope many researchers will come forward to expose this kind of corruption. It is very saddening and disgusting to see the people who are supposed to be role models for the scientific community, </em>and <em>for the betterment of humanity, working as seasoned politicians, interchanging and mixing truth and lie shamelessly and also holding some ethical position when they do not have minimum ethics. The so-called ethical committees’ backbone is so weak that they can not take any strong steps if there is a famous journal or established author involved. There is science and scientist everywhere but how many of them truly follow ethics</em>,<em> not </em>so<em> many, unfortunately!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j0l_rcNVbuzEjThrPuSS-g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BVQMJ5ZoAaCcHJGnL0Luqw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OtZ4eRAYMPQ5IAuvmPGM-w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n_xVVm61SzRA7BBACN2tPA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*592NhQunaaUQCFWL1jOTHA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IXLcWHYnj6541QLnwu893Q.jpeg" /></figure><p><em>Claim: Proof of email communication, data, and other evidence are available upon request.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df0749e30b3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to OPWeight, an R pacakge]]></title>
            <link>https://medium.com/r-statistics-data-science/introduction-to-opweight-an-r-pacakge-2baf6d7c367f?source=rss-26bc63682adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/2baf6d7c367f</guid>
            <category><![CDATA[r-package]]></category>
            <category><![CDATA[high-dimensional-data]]></category>
            <category><![CDATA[p-value]]></category>
            <category><![CDATA[hypothesis-testing]]></category>
            <category><![CDATA[fdr]]></category>
            <dc:creator><![CDATA[Mohamad Hasan]]></dc:creator>
            <pubDate>Mon, 29 Nov 2021 03:07:43 GMT</pubDate>
            <atom:updated>2021-11-29T03:07:43.475Z</atom:updated>
            <content:encoded><![CDATA[<p>High throughput data is very common in modern science. The main property of these data is high-dimensionality; that is, the number of features is larger than the number of observations. There are many ways to study this kind of data, and multiple hypothesis testing is one of them. In a multiple hypothesis test, generally, a list of p-values are calculated, one for each hypothesis corresponding to one feature; the p-values are then compared with one or more predefined fixed or random thresholds to obtain the number of significant features. The key goal is to control the Family Wise Error Rate or False Discovery Rate while maximizing the power of the tests.</p><p>For details click the link below:</p><p><a href="https://www.bioconductor.org/packages/release/bioc/vignettes/OPWeight/inst/doc/OPWeight.html">Introduction to OPWeight</a></p><p><em>Originally published at </em><a href="https://www.bioconductor.org/packages/release/bioc/vignettes/OPWeight/inst/doc/OPWeight.html"><em>https://www.bioconductor.org</em></a><em> on October 27, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2baf6d7c367f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/r-statistics-data-science/introduction-to-opweight-an-r-pacakge-2baf6d7c367f">Introduction to OPWeight, an R pacakge</a> was originally published in <a href="https://medium.com/r-statistics-data-science">R, Statistics &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sample size/power simulation using multi-core computing in R]]></title>
            <link>https://medium.com/r-statistics-data-science/sample-size-power-simulation-using-multi-core-computing-in-r-661b24bb9d14?source=rss-26bc63682adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/661b24bb9d14</guid>
            <category><![CDATA[sample-size]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[tidyverse]]></category>
            <category><![CDATA[parallel-computing]]></category>
            <category><![CDATA[survival-analysis]]></category>
            <dc:creator><![CDATA[Mohamad Hasan]]></dc:creator>
            <pubDate>Mon, 29 Nov 2021 02:59:40 GMT</pubDate>
            <atom:updated>2021-11-29T02:59:40.042Z</atom:updated>
            <content:encoded><![CDATA[<h3>Rationale</h3><p>The goal of this simulation is to calculate power/sample size for a given hazard ratio (HR) in survival analysis by taking advantage of modern multicore computers. When we conduct simulation, generally, we simulate datasets for different combinations of sample size and HR then compute the proportion of rejection given the null vs. alternative hypotheses are H₀:HR=1 vs. H₁:HR&lt;1 for treatment vs. control assuming treatment will perform better. Suppose, we are interested in calculating power when true HR={.65,.90,1.0,1.1,1.5} for various combination of the treatment sample size n1={100,200,300} and the control sample size n0={250,350} over 5000 iterations. In other words, we need to fit 5×3×2×5000=150,000 survival models to obtain the power estimates. Here, we show how we can effectively use multicore computers and conduct simulations faster.</p><h3>Background</h3><p>Suppose, in a prospective clinical trial the annual dropout rate is 5% with a median dropout time of 12 months and we want to conduct a final analysis at 42 months which includes 24 months of enrollment and 18 months of follow-up time. If the survival time follows exponential distribution with median survival of 36 months for control then the survival rate for control is λ₀=log(2)/36 and for treatment is λ₁=log(2)/(36/HR). Similarly, the dropout time is exponential distribution with a rate λ𝒹=(−log(1−.05))/12 with a median dropout time of 12 months. Furthermore, suppose the patient entry time is uniform and the same for both treatment and control.</p><p>The R-code below shows how to perform parallel computing. We accomplish this in three steps:</p><ol><li>Define a function that simulates a single dataset, performs survival analysis, and provides the corresponding statistics.</li><li>Define another function that performs step (i) for the different combinations of hazard ratios (HR) and sample sizes (n0 and n1).</li><li>Apply function using multiple cores to perform parallel computing.</li></ol><pre><em>#rm(list=ls())</em></pre><pre><em># load necessary libraries for this simulation</em><br><strong>library</strong>(survival)       <em># for survival analysis</em><br><strong>library</strong>(tidyverse)      <em># for data manipulation and analysis</em><br><strong>library</strong>(multidplyr)     <em># for parallel computing</em><br><strong>library</strong>(parallel)       <em># for finding the number of cores</em></pre><p>The function data_and_analysis simulates a single dataset for given parameters then fits Cox Proportional Hazards regression and computes the corresponding statistics. The inputs of this function are different population parameters and the output is the list of two tibble: 1) simulated data and 2) computed statistics. We take advantage of tidyverse nested data structure to keep both data and statistics in case we want to verify the outputs.</p><pre>data_and_analysis &lt;- <strong>function</strong>(<br>hr = .80,        <em># default hazard ratio treatment vs. control</em>                              <br>n0 = 100,        <em># default sample size for control</em>                              <br>n1 = 50,         <em># default sample size for treatment</em>                              <br>dropr = .05,     <em># default dropout rate in percentage</em>                              <br>meddrop = 12,    <em># default median dropout time in months</em>                              <br>etime = 24,      <em># default enrollment time in months</em>                              <br>atime = 42,      <em># default final analysis time in months</em>                              <br>medsurv0 = 36)  <em># default median survival time in months for control</em><br>{<br>  n = n0 + n1<br>  <br><em># calculate rate for control and treatment from median survival time</em><br>  lambda0 = log(2)/medsurv0<br>  medsurv1 = medsurv0/hr<br>  lambda1 = log(2)/medsurv1<br>  <br>  t0 = runif(n)*etime        <em># simulate entry time</em><br>  td = <strong>if</strong>(dropr==0){         <em># simulate dropout time</em><br>          rep(Inf, n)<br>        } <strong>else</strong> {<br>          rexp(n, -log(1-dropr)/meddrop)<br>        } <br>  t1 = c(rexp(n1, lambda1), rexp(n0, lambda0)) <em># simulate end time</em><br>  arm = c(rep(&#39;trt&#39;, n1), rep(&#39;ctr&#39;, n0))  <em># create arm covariate</em><br>  status = ifelse(t1+t0&gt;=atime, 0, ifelse(t1&lt;=td, 1, 0))  <br><em># assign patient status </em><br>  time = as.numeric(pmin(atime-t0, pmin(t1, td)))         <br><em># obtain survival time</em><br>  <br>  dat &lt;- bind_cols(t0=t0, td=td, t1=t1, arm=arm)       <br>  <br>  <em># fit survival model and obtain summary</em><br>  fit = survival::coxph(Surv(time, status) ~ arm, data = dat) %&gt;% summary()<br>  <br>  <em># estimate true HR and 80% and 90% upper confidence interval</em><br>  estHR = exp(fit$coefficients[1])<br>  uCi80 = exp(fit$coefficients[1] + qnorm(.90)*fit$coefficients[3])<br>  uCi90 = exp(fit$coefficients[1] + qnorm(.95)*fit$coefficients[3])<br>  <br>  <em># logical output (1, 0) if estimated true HR &gt; .80</em><br>  pHR = as.numeric(estHR &gt; .80)<br>  <br>  <em># logical output (1, 0) if the upper limit of CI below 1.0 </em><br>  puCi80 = as.numeric(uCi80 &lt; 1.0)<br>  puCi90 = as.numeric(uCi90 &lt; 1.0)<br>  <br>  <em># logical output (1, 0) if null hypothesis (H0: HR=1) is rejected</em><br>  pPval80 = as.numeric(fit$coefficients[5] &lt; .20)<br>  pPval90 = as.numeric(fit$coefficients[5] &lt; .10)<br>  <br><em># keeping simulated data as well as statistics in a nested structure</em><br>  <strong>return</strong>(list(data = tibble(arm=arm, status=status, time=time),<br>              stat = tibble(trueHR=hr, n0=n0, n1=n1, n=n,<br>                            estHR=estHR, pHR=pHR, <br>                            puCi80=puCi80, puCi90=puCi90,<br>                            pPval80=pPval80, pPval90=pPval90)))<br>}</pre><p>The function power_by_HR_N simulates datasets for the combinations of hr, n0, and n1 for each iteration then obtain the same output as the function data_and_analysis does. It is possible to include iteration within this function, however, our target is to split iteration over different cores to reduce the computational and transitional time.</p><pre>power_by_HR_N &lt;- <strong>function</strong>(iter,            <em># number of iterations</em><br>                          hr = c(.65, .70, .80), <br>                          n0 = 350,  <br>                          n1 = c(30, 60, 90),   <br>                          dropr = .05,      <br>                          meddrop = 12,    <br>                          etime = 24,          <br>                          atime = 42,        <br>                          medsurv0 = 36) <br>  <br>{<br><em># find combinations of hr, n0, and n1; then apply function to obtain data and statistics</em><br>  comboFit &lt;- expand_grid(hr, n0, n1) %&gt;%<br>                  mutate(results=pmap(., data_and_analysis)) <br>  <strong>return</strong>(comboFit)<br>}</pre><p>First, we apply the function using multiple cores and then apply single-core to compare time and results.</p><pre><em># setup multiple core for parallel computation</em><br>cl &lt;- detectCores() <em># automatically detect the number of cores</em><br>cl</pre><pre>## [1] 16</pre><pre>cluster &lt;- new_cluster(cl)</pre><pre><em># include R-libraries and functions to be used to the cluster</em><br>cluster_library(cluster, c(&quot;tidyverse&quot;, &quot;survival&quot;, &quot;dplyr&quot;))<br>cluster_copy(cluster, c(&#39;power_by_HR_N&#39;, &#39;data_and_analysis&#39;))</pre><pre><em># apply functions using multiple cores</em><br>set.seed(1212021)</pre><pre><em># Start the clock!</em><br>ptm &lt;- proc.time()</pre><pre>iter=5000<br>d &lt;- bind_cols(iterVal = 1:iter)</pre><pre>iter_result &lt;- d %&gt;% <br>  group_by(iterVal) %&gt;%<br>  partition(cluster) %&gt;%<br>  mutate(output = map(iterVal, <br>                      ~power_by_HR_N(iter=., <br>                                    hr = c(.65, .90, 1.0, 1.1, 1.5),           <br>                                     n0 = c(250, 350),  <br>                                     n1 = c(100, 200, 300)))) %&gt;% collect()</pre><pre>proc.time() - ptm</pre><pre>##    user  system elapsed <br>##  32.359   1.178 175.843</pre><pre><em># End the clock!</em></pre><p>This shows the amount of time needed if we use multiple cores.</p><pre>iter_result</pre><pre>## # A tibble: 5,000 x 2<br>## # Groups:   iterVal [5,000]<br>##    iterVal output           <br>##      &lt;int&gt; &lt;list&gt;           <br>##  1       1 &lt;tibble [30 × 4]&gt;<br>##  2      17 &lt;tibble [30 × 4]&gt;<br>##  3      33 &lt;tibble [30 × 4]&gt;<br>##  4      49 &lt;tibble [30 × 4]&gt;<br>##  5      65 &lt;tibble [30 × 4]&gt;<br>##  6      81 &lt;tibble [30 × 4]&gt;<br>##  7      97 &lt;tibble [30 × 4]&gt;<br>##  8     113 &lt;tibble [30 × 4]&gt;<br>##  9     129 &lt;tibble [30 × 4]&gt;<br>## 10     145 &lt;tibble [30 × 4]&gt;<br>## # … with 4,990 more rows</pre><p>As you can see the output is very unique. The first column iterVal is the index of iterations and the second column output is the list in which each row contains a tibble of 30 rows and 4 columns. The 30 rows represent the combination of hr× n0×n1=30 and the 4 columns represent hr, n0, n1, and results. The results then contain two lists of tibble: 1) the simulated data (data) and 2) the statistics (stat). To see the details run the code below final_result step by step and observe. Here we are interested in the final statistics, which is obtained by using all steps of final_result.</p><pre><em># summarize the output</em><br>final_result &lt;- iter_result %&gt;% <br>                  unnest(cols=output) %&gt;%<br>                  .$results %&gt;%<br>                  map_dfr(&#39;stat&#39;) %&gt;%<br>                  group_by(trueHR, n0, n1, n) %&gt;%<br>                  summarise_all(mean, na.rm=TRUE)</pre><pre>final_result</pre><p>## # A tibble: 30 x 10<br>## # Groups: trueHR, n0, n1 [30]<br>## trueHR n0 n1 n estHR pHR puCi80 puCi90 pPval80 pPval90<br>## &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt;<br>## 1 0.65 250 100 350 0.655 0.145 0.809 0.684 0.809 0.684<br>## 2 0.65 250 200 450 0.658 0.104 0.915 0.841 0.915 0.841<br>## 3 0.65 250 300 550 0.656 0.078 0.949 0.905 0.949 0.905<br>## 4 0.65 350 100 450 0.661 0.156 0.808 0.687 0.808 0.687<br>## 5 0.65 350 200 550 0.657 0.0888 0.936 0.884 0.936 0.884<br>## 6 0.65 350 300 650 0.655 0.0628 0.974 0.941 0.974 0.941<br>## 7 0.9 250 100 350 0.914 0.729 0.233 0.132 0.270 0.146<br>## 8 0.9 250 200 450 0.908 0.784 0.279 0.164 0.303 0.172<br>## 9 0.9 250 300 550 0.910 0.813 0.297 0.181 0.317 0.189<br>## 10 0.9 350 100 450 0.907 0.725 0.243 0.139 0.271 0.151<br>## # … with 20 more rows</p><p>Finally, we obtain the result by taking mean over iteration.</p><p>To compare the computational time, we also conduct the same analysis using a single-core. The elapsed time using multiple cores is approximately 8 times faster.</p><pre><em># apply functions using single core</em><br><em># single core----------</em><br>set.seed(1212021)<br><em># Start the clock!</em><br>ptm &lt;- proc.time()<br>iter=5000<br>d &lt;- bind_cols(iterVal = 1:iter)</pre><pre>iter_resultx &lt;- d %&gt;% <br>  group_by(iterVal) %&gt;%<br>  mutate(output = map(iterVal, <br>                      ~power_by_HR_N(iter=., <br>                                    hr = c(.65, .90, 1.0, 1.1, 1.5),           <br>                                     n0 = c(250, 350),  <br>                                     n1 = c(100, 200, 300)))) <br>proc.time() - ptm</pre><pre>##     user   system  elapsed <br>## 1131.947    1.183 1134.448</pre><pre><em># End the clock!</em></pre><p>This shows the amount of time needed if we use a single core.</p><pre><em># summarize the output</em><br>final_resultx &lt;- iter_result %&gt;% <br>                    unnest(cols=output) %&gt;%<br>                    .$results %&gt;%<br>                    map_dfr(&#39;stat&#39;) %&gt;%<br>                    group_by(trueHR, n0, n1, n) %&gt;%<br>                    summarise_all(mean, na.rm=TRUE)</pre><pre>final_resultx</pre><p>## # A tibble: 30 x 10<br>## # Groups: trueHR, n0, n1 [30]<br>## trueHR n0 n1 n estHR pHR puCi80 puCi90 pPval80 pPval90<br>## &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt;<br>## 1 0.65 250 100 350 0.655 0.145 0.809 0.684 0.809 0.684<br>## 2 0.65 250 200 450 0.658 0.104 0.915 0.841 0.915 0.841<br>## 3 0.65 250 300 550 0.656 0.078 0.949 0.905 0.949 0.905<br>## 4 0.65 350 100 450 0.661 0.156 0.808 0.687 0.808 0.687<br>## 5 0.65 350 200 550 0.657 0.0888 0.936 0.884 0.936 0.884<br>## 6 0.65 350 300 650 0.655 0.0628 0.974 0.941 0.974 0.941<br>## 7 0.9 250 100 350 0.914 0.729 0.233 0.132 0.270 0.146<br>## 8 0.9 250 200 450 0.908 0.784 0.279 0.164 0.303 0.172<br>## 9 0.9 250 300 550 0.910 0.813 0.297 0.181 0.317 0.189<br>## 10 0.9 350 100 450 0.907 0.725 0.243 0.139 0.271 0.151<br>## # … with 20 more rows</p><h3>Conclusion</h3><p>The performance of parallel computing will not be exactly multicore time * number of core = single-core time because of data distribution and collection time, however, parallel processing is faster than single-core processing. Since most modern computers are multi-core, we can easily use them without extra resources.</p><p>The output from both processes seems aligned perfectly. The columns trueHR, n0=n0, n1=n1, and n=n are the true HR, and sample size of the control, treatment, and combined, respectively. The column estHR shows estimated HR of the true HR, pHR is the proportion of estimated HR that is greater than .80, puCi80 and puCi90 are the proportion of 80% and 90% upper confidence limit that are less than 1.0, respectively, and finally pPval80 and pPval90 show the proportion of rejected null hypothesis when α=.20 and .10. The last four columns also represent the power for the respective combination of the sample size and HR, and pPval80 and pPval90 show the type-I error when the true HR=1.</p><p><a href="https://mshasan.github.io/SurvivalAnalysis/Sample%20size%20calculation%20for%20survival%20analysis%20via%20parallel%20computing.html">Sample size calculation for survival analysis via parallel computing</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=661b24bb9d14" width="1" height="1" alt=""><hr><p><a href="https://medium.com/r-statistics-data-science/sample-size-power-simulation-using-multi-core-computing-in-r-661b24bb9d14">Sample size/power simulation using multi-core computing in R</a> was originally published in <a href="https://medium.com/r-statistics-data-science">R, Statistics &amp; Data Science</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Follow these 6 steps to increase chances of getting an internship]]></title>
            <link>https://medium.com/internships-jobs-career/follow-these-6-steps-to-increase-chances-of-getting-an-internship-3831fd63f634?source=rss-26bc63682adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/3831fd63f634</guid>
            <category><![CDATA[industry]]></category>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[jobs]]></category>
            <dc:creator><![CDATA[Mohamad Hasan]]></dc:creator>
            <pubDate>Mon, 29 Nov 2021 02:30:27 GMT</pubDate>
            <atom:updated>2024-03-31T16:50:21.852Z</atom:updated>
            <content:encoded><![CDATA[<p>Before applying for an internship, there are six steps that an intern should take into consideration. Working in a large pharmaceutical company, we hire interns on a yearly basis. However, finding students who truly fit our projects can be challenging. It’s important to note that the job description you see online is a general overview posted by the human resource department. Behind the scenes, hiring managers are specifically looking for certain skills. Unlike regular full-time positions, internships only last for 3–4 months, so there is limited time for extensive training and integration into the working environment. Therefore, interns need to have specific skills that can be utilized from the start. It’s important for students to recognize their existing skills and showcase them in their resumes. Hiring managers are practical and are looking for individuals who can complete projects within the internship timeframe. With this in mind, here are the six steps an intern should consider before applying for an internship.</p><h3>Provide details about your projects</h3><p>Provide detailed information about your projects, including the project titles and the methodologies and software used. For instance, this year, I was seeking a Ph.D. student who had experience with Bayesian statistics, specifically in the context of survival analysis. It was challenging to evaluate candidates as many of them mentioned having Bayesian experience but did not specify the specific methodologies they had worked with. While some may indeed have experience in Bayesian survival analysis, it was difficult for me to discern that from their resumes alone. I may reach out to them, but they would not be my top choice. It would be fortunate for applicants in this situation if they included project details related to survival analysis on their resumes, as it would provide me with more information. Additionally, having these details would help applicants prepare for the interview, as reviewing their resumes would remind them of their accomplishments.</p><h3>A one-page resume is not important</h3><p>There is a misconception that a resume should be limited to one page in size, which can be misleading. While it is important to avoid excessive length, including relevant projects, especially when applying for internships, is necessary. In our case, we received around 500 resumes for 10 internship positions this year. Some resumes were 4–5 pages long and accompanied by 3–4 page cover letters. However, we did not review every resume because it was not required. Our primary focus was on finding someone with experience in Bayesian statistics, so I used the keyword ‘Bayesian’ as a filter to identify potential candidates for my project. Ultimately, the length of the resumes did not bother me as long as they had the desired expertise.</p><h3>Avoid repeating the same things</h3><p>It is important to provide project details, but it is unnecessary to repeat information in different ways and unnecessarily lengthen the resume and experience. For instance, let’s say there is a Ph.D. student who is also working as a research assistant. Some students might list this job title for each project individually. Even if they work with different professors or projects, they should consolidate this information under the same job title. However, they can still use separate bullet points to highlight each project.</p><h3>Provide years of experience</h3><p>In order to stand out, it is not enough for students to simply mention their skills. It is crucial to also highlight the number of years of experience they have. If one individual has one year of experience using R software, while another has ten years, their level of expertise is not equal. By explicitly stating the years of experience, it gives an advantage to the person with more experience. Additionally, it is beneficial to provide specific details on how the software was utilized, such as hands-on experience gained through various projects. This extra level of information adds further value and enhances one’s profile.</p><h3>Educational background</h3><p>In the eyes of many students, the only things that seem to matter when showcasing their qualifications are the degree they hold and the timeframe in which they obtained it. However, when it comes to hiring managers, these aspects often fall short, as they are looking for additional information beyond just the degree title and completion date. Keep in mind that I am reviewing your resume because you have already fulfilled the degree requirement. If you fail to provide any further details, you might be wasting valuable space on your resume. It is crucial to elaborate more on your degree by including aspects such as the topic of your Ph.D. thesis, the methodologies you have developed, and the impact of your research.</p><h3>Take informed decision</h3><p>Try to understand the job requirements thoroughly when you apply. For instance, if the job is in the statistics department and emphasizes experience in data science and machine learning, focusing mainly on working with large datasets may not be beneficial. Many students overlook this fact in the current era of data science hype. Do statisticians utilize data science and machine learning? Absolutely, but it ultimately depends on the context. For example, if you’re working with oncology patients, you may not have the luxury of a large sample size. Nowadays, most large companies have dedicated data science departments for specific tasks. While there are significant methodological overlaps between pure statistics and data science, their applications differ significantly. In clinical trials, statistical analysis primarily revolves around small sample sizes. Therefore, it’s essential to be practical and consider specific job requirements when applying. It’s unlikely that you’ll be hired in a statistics department if you predominantly showcase enthusiasm for data science.</p><p>In summary, do you need to create resumes for every job application in order to avoid being overlooked if the right keywords are not used? The answer is no. Firstly, you cannot be certain of exactly what the hiring manager is specifically seeking. The online job description provides a general overview of the department’s requirements. One effective approach I would recommend is to be your genuine self and showcase your detailed accomplishments, particularly in the form of projects. If these align with the hiring manager’s requirements, you stand a chance of being hired. However, if they don’t, it would be best not to be hired for the wrong reasons. If you were to be fortunate enough to be hired for a role that falls outside of your area of expertise, you will ultimately struggle to perform the job and consequently appear unfavorable and lose motivation. Moreover, this will close off another opportunity where you could have learned and grown. To some extent, this holds true not only for internships but also for regular jobs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3831fd63f634" width="1" height="1" alt=""><hr><p><a href="https://medium.com/internships-jobs-career/follow-these-6-steps-to-increase-chances-of-getting-an-internship-3831fd63f634">Follow these 6 steps to increase chances of getting an internship</a> was originally published in <a href="https://medium.com/internships-jobs-career">Internships, Jobs &amp; Career</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Follow these 6 steps to increase chances of getting an internship]]></title>
            <link>https://shakilmohamad7.medium.com/follow-these-6-steps-to-increase-chances-of-getting-an-internship-5b95ed676e90?source=rss-26bc63682adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b95ed676e90</guid>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[resume]]></category>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[projects]]></category>
            <dc:creator><![CDATA[Mohamad Hasan]]></dc:creator>
            <pubDate>Fri, 19 Mar 2021 02:54:22 GMT</pubDate>
            <atom:updated>2024-03-31T16:48:47.240Z</atom:updated>
            <content:encoded><![CDATA[<p>Before applying for an internship, there are six steps that an intern should take into consideration. Working in a large pharmaceutical company, we hire interns on a yearly basis. However, finding students who truly fit our projects can be challenging. It’s important to note that the job description you see online is a general overview posted by the human resource department. Behind the scenes, hiring managers are specifically looking for certain skills. Unlike regular full-time positions, internships only last for 3–4 months, so there is limited time for extensive training and integration into the working environment. Therefore, interns need to have specific skills that can be utilized from the start. It’s important for students to recognize their existing skills and showcase them in their resumes. Hiring managers are practical and are looking for individuals who can complete projects within the internship timeframe. With this in mind, here are the six steps an intern should consider before applying for an internship.</p><h3><strong>Provide details about your projects</strong></h3><p>Provide detailed information about your projects, including the project titles and the methodologies and software used. For instance, this year, I was seeking a Ph.D. student who had experience with Bayesian statistics, specifically in the context of survival analysis. It was challenging to evaluate candidates as many of them mentioned having Bayesian experience but did not specify the specific methodologies they had worked with. While some may indeed have experience in Bayesian survival analysis, it was difficult for me to discern that from their resumes alone. I may reach out to them, but they would not be my top choice. It would be fortunate for applicants in this situation if they included project details related to survival analysis on their resumes, as it would provide me with more information. Additionally, having these details would help applicants prepare for the interview, as reviewing their resumes would remind them of their accomplishments.</p><h3>A one-page resume is not important</h3><p>There is a misconception that a resume should be limited to one page in size, which can be misleading. While it is important to avoid excessive length, including relevant projects, especially when applying for internships, is necessary. In our case, we received around 500 resumes for 10 internship positions this year. Some resumes were 4–5 pages long and accompanied by 3–4 page cover letters. However, we did not review every resume because it was not required. Our primary focus was on finding someone with experience in Bayesian statistics, so I used the keyword ‘Bayesian’ as a filter to identify potential candidates for my project. Ultimately, the length of the resumes did not bother me as long as they had the desired expertise.</p><h3>Avoid repeating the same things</h3><p>It is important to provide project details, but it is unnecessary to repeat information in different ways and unnecessarily lengthen the resume and experience. For instance, let’s say there is a Ph.D. student who is also working as a research assistant. Some students might list this job title for each project individually. Even if they work with different professors or projects, they should consolidate this information under the same job title. However, they can still use separate bullet points to highlight each project.</p><h3>Provide years of experience</h3><p>In order to stand out, it is not enough for students to simply mention their skills. It is crucial to also highlight the number of years of experience they have. If one individual has one year of experience using R software, while another has ten years, their level of expertise is not equal. By explicitly stating the years of experience, it gives an advantage to the person with more experience. Additionally, it is beneficial to provide specific details on how the software was utilized, such as hands-on experience gained through various projects. This extra level of information adds further value and enhances one’s profile.</p><h3>Educational background</h3><p>In the eyes of many students, the only things that seem to matter when showcasing their qualifications are the degree they hold and the timeframe in which they obtained it. However, when it comes to hiring managers, these aspects often fall short, as they are looking for additional information beyond just the degree title and completion date. Keep in mind that I am reviewing your resume because you have already fulfilled the degree requirement. If you fail to provide any further details, you might be wasting valuable space on your resume. It is crucial to elaborate more on your degree by including aspects such as the topic of your Ph.D. thesis, the methodologies you have developed, and the impact of your research.</p><h3>Take informed decision</h3><p>Try to understand the job requirements thoroughly when you apply. For instance, if the job is in the statistics department and emphasizes experience in data science and machine learning, focusing mainly on working with large datasets may not be beneficial. Many students overlook this fact in the current era of data science hype. Do statisticians utilize data science and machine learning? Absolutely, but it ultimately depends on the context. For example, if you’re working with oncology patients, you may not have the luxury of a large sample size. Nowadays, most large companies have dedicated data science departments for specific tasks. While there are significant methodological overlaps between pure statistics and data science, their applications differ significantly. In clinical trials, statistical analysis primarily revolves around small sample sizes. Therefore, it’s essential to be practical and consider specific job requirements when applying. It’s unlikely that you’ll be hired in a statistics department if you predominantly showcase enthusiasm for data science.</p><p>In summary, do you need to create resumes for every job application in order to avoid being overlooked if the right keywords are not used? The answer is no. Firstly, you cannot be certain of exactly what the hiring manager is specifically seeking. The online job description provides a general overview of the department’s requirements. One effective approach I would recommend is to be your genuine self and showcase your detailed accomplishments, particularly in the form of projects. If these align with the hiring manager’s requirements, you stand a chance of being hired. However, if they don’t, it would be best not to be hired for the wrong reasons. If you were to be fortunate enough to be hired for a role that falls outside of your area of expertise, you will ultimately struggle to perform the job and consequently appear unfavorable and lose motivation. Moreover, this will close off another opportunity where you could have learned and grown. To some extent, this holds true not only for internships but also for regular jobs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b95ed676e90" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sample size/power simulation for survival analysis via parallel computing in R]]></title>
            <link>https://shakilmohamad7.medium.com/sample-size-power-simulation-for-survival-analysis-via-parallel-computing-in-r-2eb7f5817de0?source=rss-26bc63682adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/2eb7f5817de0</guid>
            <dc:creator><![CDATA[Mohamad Hasan]]></dc:creator>
            <pubDate>Wed, 17 Feb 2021 00:00:00 GMT</pubDate>
            <atom:updated>2021-11-28T21:20:28.424Z</atom:updated>
            <content:encoded><![CDATA[<h3>Sample size/power simulation using multi-core computing in R</h3><h3>Rationale</h3><p>The goal of this simulation is to calculate power/sample size for a given hazard ratio (HR) in survival analysis by taking advantage of modern multicore computers. When we conduct simulation, generally, we simulate datasets for different combinations of sample size and HR then compute the proportion of rejection given the null vs. alternative hypotheses are H₀:HR=1 vs. H₁:HR&lt;1 for treatment vs. control assuming treatment will perform better. Suppose, we are interested in calculating power when true HR={.65,.90,1.0,1.1,1.5} for various combination of the treatment sample size n1={100,200,300} and the control sample size n0={250,350} over 5000 iterations. In other words, we need to fit 5×3×2×5000=150,000 survival models to obtain the power estimates. Here, we show how we can effectively use multicore computers and conduct simulations faster.</p><h3>Background</h3><p>Suppose, in a prospective clinical trial the annual dropout rate is 5% with a median dropout time of 12 months and we want to conduct a final analysis at 42 months which includes 24 months of enrollment and 18 months of follow-up time. If the survival time follows exponential distribution with median survival of 36 months for control then survival rate for control is λ₀=log(2)/36 and for treatment is λ₁=log(2)/(36/HR). Similarly, the dropout time is exponential distribution with a rate λ𝒹=(−log(1−.05))/12 with a median dropout time of 12 months. Furthermore, suppose the patient entry time is uniform and the same for both treatment and control.</p><p>The R-code below shows how to perform parallel computing. We accomplish this in three steps:</p><ol><li>Define a function that simulates a single dataset, performs survival analysis, and provides the corresponding statistics.</li><li>Define another function that performs step (i) for the different combinations of hazard ratios (HR) and sample sizes (n0 and n1).</li><li>Apply function using multiple cores to perform parallel computing.</li></ol><pre><em>#rm(list=ls())</em></pre><pre><em># load necessary libraries for this simulation</em><br><strong>library</strong>(survival)       <em># for survival analysis</em><br><strong>library</strong>(tidyverse)      <em># for data manipulation and analysis</em><br><strong>library</strong>(multidplyr)     <em># for parallel computing</em><br><strong>library</strong>(parallel)       <em># for finding the number of cores</em></pre><p>The function data_and_analysis simulates a single dataset for given parameters then fits Cox Proportional Hazards regression and computes the corresponding statistics. The inputs of this function are different population parameters and the output is the list of two tibble: 1) simulated data and 2) computed statistics. We take advantage of tidyverse nested data structure to keep both data and statistics in case we want to verify the outputs.</p><pre>data_and_analysis &lt;- <strong>function</strong>(<br>hr = .80,        <em># default hazard ratio treatment vs. control</em>                              <br>n0 = 100,        <em># default sample size for control</em>                              <br>n1 = 50,         <em># default sample size for treatment</em>                              <br>dropr = .05,     <em># default dropout rate in percentage</em>                              <br>meddrop = 12,    <em># default median dropout time in months</em>                              <br>etime = 24,      <em># default enrollment time in months</em>                              <br>atime = 42,      <em># default final analysis time in months</em>                              <br>medsurv0 = 36)  <em># default median survival time in months for control</em><br>{<br>  n = n0 + n1<br>  <br><em># calculate rate for control and treatment from median survival time</em><br>  lambda0 = log(2)/medsurv0<br>  medsurv1 = medsurv0/hr<br>  lambda1 = log(2)/medsurv1<br>  <br>  t0 = runif(n)*etime        <em># simulate entry time</em><br>  td = <strong>if</strong>(dropr==0){         <em># simulate dropout time</em><br>          rep(Inf, n)<br>        } <strong>else</strong> {<br>          rexp(n, -log(1-dropr)/meddrop)<br>        } <br>  t1 = c(rexp(n1, lambda1), rexp(n0, lambda0)) <em># simulate end time</em><br>  arm = c(rep(&#39;trt&#39;, n1), rep(&#39;ctr&#39;, n0))  <em># create arm covariate</em><br>  status = ifelse(t1+t0&gt;=atime, 0, ifelse(t1&lt;=td, 1, 0))  <br><em># assign patient status </em><br>  time = as.numeric(pmin(atime-t0, pmin(t1, td)))         <br><em># obtain survival time</em><br>  <br>  dat &lt;- bind_cols(t0=t0, td=td, t1=t1, arm=arm)       <br>  <br>  <em># fit survival model and obtain summary</em><br>  fit = survival::coxph(Surv(time, status) ~ arm, data = dat) %&gt;% summary()<br>  <br>  <em># estimate true HR and 80% and 90% upper confidence interval</em><br>  estHR = exp(fit$coefficients[1])<br>  uCi80 = exp(fit$coefficients[1] + qnorm(.90)*fit$coefficients[3])<br>  uCi90 = exp(fit$coefficients[1] + qnorm(.95)*fit$coefficients[3])<br>  <br>  <em># logical output (1, 0) if estimated true HR &gt; .80</em><br>  pHR = as.numeric(estHR &gt; .80)<br>  <br>  <em># logical output (1, 0) if the upper limit of CI below 1.0 </em><br>  puCi80 = as.numeric(uCi80 &lt; 1.0)<br>  puCi90 = as.numeric(uCi90 &lt; 1.0)<br>  <br>  <em># logical output (1, 0) if null hypothesis (H0: HR=1) is rejected</em><br>  pPval80 = as.numeric(fit$coefficients[5] &lt; .20)<br>  pPval90 = as.numeric(fit$coefficients[5] &lt; .10)<br>  <br><em># keeping simulated data as well as statistics in a nested structure</em><br>  <strong>return</strong>(list(data = tibble(arm=arm, status=status, time=time),<br>              stat = tibble(trueHR=hr, n0=n0, n1=n1, n=n,<br>                            estHR=estHR, pHR=pHR, <br>                            puCi80=puCi80, puCi90=puCi90,<br>                            pPval80=pPval80, pPval90=pPval90)))<br>}</pre><p>The function power_by_HR_N simulates datasets for the combinations of hr, n0, and n1 for each iteration then obtain the same output as the function data_and_analysis does. It is possible to include iteration within this function, however, our target is to split iteration over different cores to reduce the computational and transitional time.</p><pre>power_by_HR_N &lt;- <strong>function</strong>(iter,            <em># number of iterations</em><br>                          hr = c(.65, .70, .80), <br>                          n0 = 350,  <br>                          n1 = c(30, 60, 90),   <br>                          dropr = .05,      <br>                          meddrop = 12,    <br>                          etime = 24,          <br>                          atime = 42,        <br>                          medsurv0 = 36) <br>  <br>{<br><em># find combinations of hr, n0, and n1; then apply function to obtain data and statistics</em><br>  comboFit &lt;- expand_grid(hr, n0, n1) %&gt;%<br>                  mutate(results=pmap(., data_and_analysis)) <br>  <strong>return</strong>(comboFit)<br>}</pre><p>First, we apply the function using multiple cores and then apply single-core to compare time and results.</p><pre><em># setup multiple core for parallel computation</em><br>cl &lt;- detectCores() <em># automatically detect the number of cores</em><br>cl</pre><pre>## [1] 16</pre><pre>cluster &lt;- new_cluster(cl)</pre><pre><em># include R-libraries and functions to be used to the cluster</em><br>cluster_library(cluster, c(&quot;tidyverse&quot;, &quot;survival&quot;, &quot;dplyr&quot;))<br>cluster_copy(cluster, c(&#39;power_by_HR_N&#39;, &#39;data_and_analysis&#39;))</pre><pre><em># apply functions using multiple cores</em><br>set.seed(1212021)</pre><pre><em># Start the clock!</em><br>ptm &lt;- proc.time()</pre><pre>iter=5000<br>d &lt;- bind_cols(iterVal = 1:iter)</pre><pre>iter_result &lt;- d %&gt;% <br>  group_by(iterVal) %&gt;%<br>  partition(cluster) %&gt;%<br>  mutate(output = map(iterVal, <br>                      ~power_by_HR_N(iter=., <br>                                    hr = c(.65, .90, 1.0, 1.1, 1.5),           <br>                                     n0 = c(250, 350),  <br>                                     n1 = c(100, 200, 300)))) %&gt;% collect()</pre><pre>proc.time() - ptm</pre><pre>##    user  system elapsed <br>##  32.359   1.178 175.843</pre><pre><em># End the clock!</em></pre><p>This shows the amount of time needed if we use multiple cores.</p><pre>iter_result</pre><pre>## # A tibble: 5,000 x 2<br>## # Groups:   iterVal [5,000]<br>##    iterVal output           <br>##      &lt;int&gt; &lt;list&gt;           <br>##  1       1 &lt;tibble [30 × 4]&gt;<br>##  2      17 &lt;tibble [30 × 4]&gt;<br>##  3      33 &lt;tibble [30 × 4]&gt;<br>##  4      49 &lt;tibble [30 × 4]&gt;<br>##  5      65 &lt;tibble [30 × 4]&gt;<br>##  6      81 &lt;tibble [30 × 4]&gt;<br>##  7      97 &lt;tibble [30 × 4]&gt;<br>##  8     113 &lt;tibble [30 × 4]&gt;<br>##  9     129 &lt;tibble [30 × 4]&gt;<br>## 10     145 &lt;tibble [30 × 4]&gt;<br>## # … with 4,990 more rows</pre><p>As you can see the output is very unique. The first column iterVal is the index of iterations and the second column output is the list in which each row contains a tibble of 30 rows and 4 columns. The 30 rows represent the combination of hr× n0×n1=30 and the 4 columns represent hr, n0, n1, and results. The results then contain two lists of tibble: 1) the simulated data (data) and 2) the statistics (stat). To see the details run the code below final_result step by step and observe. Here we are interested in the final statistics, which is obtained by using all steps of final_result.</p><pre><em># summarize the output</em><br>final_result &lt;- iter_result %&gt;% <br>                  unnest(cols=output) %&gt;%<br>                  .$results %&gt;%<br>                  map_dfr(&#39;stat&#39;) %&gt;%<br>                  group_by(trueHR, n0, n1, n) %&gt;%<br>                  summarise_all(mean, na.rm=TRUE)</pre><pre>final_result</pre><p>## # A tibble: 30 x 10<br>## # Groups: trueHR, n0, n1 [30]<br>## trueHR n0 n1 n estHR pHR puCi80 puCi90 pPval80 pPval90<br>## &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt;<br>## 1 0.65 250 100 350 0.655 0.145 0.809 0.684 0.809 0.684<br>## 2 0.65 250 200 450 0.658 0.104 0.915 0.841 0.915 0.841<br>## 3 0.65 250 300 550 0.656 0.078 0.949 0.905 0.949 0.905<br>## 4 0.65 350 100 450 0.661 0.156 0.808 0.687 0.808 0.687<br>## 5 0.65 350 200 550 0.657 0.0888 0.936 0.884 0.936 0.884<br>## 6 0.65 350 300 650 0.655 0.0628 0.974 0.941 0.974 0.941<br>## 7 0.9 250 100 350 0.914 0.729 0.233 0.132 0.270 0.146<br>## 8 0.9 250 200 450 0.908 0.784 0.279 0.164 0.303 0.172<br>## 9 0.9 250 300 550 0.910 0.813 0.297 0.181 0.317 0.189<br>## 10 0.9 350 100 450 0.907 0.725 0.243 0.139 0.271 0.151<br>## # … with 20 more rows</p><p>Finally, we obtain the result by taking mean over iteration.</p><p>To compare the computational time, we also conduct the same analysis using a single-core. The elapsed time using multiple cores is approximately 8 times faster.</p><pre><em># apply functions using single core</em><br><em># single core----------</em><br>set.seed(1212021)<br><em># Start the clock!</em><br>ptm &lt;- proc.time()<br>iter=5000<br>d &lt;- bind_cols(iterVal = 1:iter)</pre><pre>iter_resultx &lt;- d %&gt;% <br>  group_by(iterVal) %&gt;%<br>  mutate(output = map(iterVal, <br>                      ~power_by_HR_N(iter=., <br>                                    hr = c(.65, .90, 1.0, 1.1, 1.5),           <br>                                     n0 = c(250, 350),  <br>                                     n1 = c(100, 200, 300)))) <br>proc.time() - ptm</pre><pre>##     user   system  elapsed <br>## 1131.947    1.183 1134.448</pre><pre><em># End the clock!</em></pre><p>This shows the amount of time needed if we use a single core.</p><pre><em># summarize the output</em><br>final_resultx &lt;- iter_result %&gt;% <br>                    unnest(cols=output) %&gt;%<br>                    .$results %&gt;%<br>                    map_dfr(&#39;stat&#39;) %&gt;%<br>                    group_by(trueHR, n0, n1, n) %&gt;%<br>                    summarise_all(mean, na.rm=TRUE)</pre><pre>final_resultx</pre><p>## # A tibble: 30 x 10<br>## # Groups: trueHR, n0, n1 [30]<br>## trueHR n0 n1 n estHR pHR puCi80 puCi90 pPval80 pPval90<br>## &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt; &lt;dbl&gt;<br>## 1 0.65 250 100 350 0.655 0.145 0.809 0.684 0.809 0.684<br>## 2 0.65 250 200 450 0.658 0.104 0.915 0.841 0.915 0.841<br>## 3 0.65 250 300 550 0.656 0.078 0.949 0.905 0.949 0.905<br>## 4 0.65 350 100 450 0.661 0.156 0.808 0.687 0.808 0.687<br>## 5 0.65 350 200 550 0.657 0.0888 0.936 0.884 0.936 0.884<br>## 6 0.65 350 300 650 0.655 0.0628 0.974 0.941 0.974 0.941<br>## 7 0.9 250 100 350 0.914 0.729 0.233 0.132 0.270 0.146<br>## 8 0.9 250 200 450 0.908 0.784 0.279 0.164 0.303 0.172<br>## 9 0.9 250 300 550 0.910 0.813 0.297 0.181 0.317 0.189<br>## 10 0.9 350 100 450 0.907 0.725 0.243 0.139 0.271 0.151<br>## # … with 20 more rows</p><h3>Conclusion</h3><p>The performance of the parallel computing will not be exactly multicore time * number of core = single-core time because of data distribution and collection time, however, parallel processing is faster than single-core processing. Since most modern computers are multi-core, we can easily use them without extra resources.</p><p>The output from both processes seems aligned perfectly. The columns trueHR, n0=n0, n1=n1, and n=n are the true HR, and sample size of the control, treatment, and combined, respectively. The column estHR shows estimated HR of the true HR, pHR is the proportion of estimated HR that is greater than .80, puCi80 and puCi90 are the proportion of 80% and 90% upper confidence limit that are less than 1.0, respectively, and finally pPval80 and pPval90 show the proportion of rejected null hypothesis when α=.20 and .10. The last four columns also represent the power for the respective combination of the sample size and HR, and pPval80 and pPval90 show the type-I error when the true HR=1.</p><p><a href="https://mshasan.github.io/SurvivalAnalysis/Sample%20size%20calculation%20for%20survival%20analysis%20via%20parallel%20computing.html">Sample size calculation for survival analysis via parallel computing</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2eb7f5817de0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to OPWeight, an R pacakge]]></title>
            <link>https://shakilmohamad7.medium.com/introduction-to-opweight-an-r-pacakge-992bc8112d47?source=rss-26bc63682adf------2</link>
            <guid isPermaLink="false">https://medium.com/p/992bc8112d47</guid>
            <category><![CDATA[covariate-weighting]]></category>
            <category><![CDATA[false-discovery-rate]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[multiple-testing]]></category>
            <category><![CDATA[bioconductor]]></category>
            <dc:creator><![CDATA[Mohamad Hasan]]></dc:creator>
            <pubDate>Tue, 27 Oct 2020 00:00:00 GMT</pubDate>
            <atom:updated>2021-11-28T21:24:53.681Z</atom:updated>
            <content:encoded><![CDATA[<p>High throughput data is very common in modern science. The main property of these data is high-dimensionality; that is, the number of features is larger than the number of observations. There are many ways to study this kind of data, and multiple hypothesis testing is one of them. In a multiple hypothesis test, generally, a list of p-values are calculated, one for each hypothesis corresponding to one feature; the p-values are then compared with one or more predefined fixed or random thresholds to obtain the number of significant features. The key goal is to control the Family Wise Error Rate or False Discovery Rate while maximizing the power of the tests.</p><p>For details click the link below:</p><p><a href="https://www.bioconductor.org/packages/release/bioc/vignettes/OPWeight/inst/doc/OPWeight.html">Introduction to OPWeight</a></p><p><em>Originally published at </em><a href="https://www.bioconductor.org/packages/release/bioc/vignettes/OPWeight/inst/doc/OPWeight.html"><em>https://www.bioconductor.org</em></a><em> on October 27, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=992bc8112d47" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>