Posts

Showing posts from September, 2026

Data Files

For Lecture 2 Height of Father and Son Pairs Lymphocyte Counts   For HW2 Methylation Level For HW3 Body Weight and Brain Weight For Lecture 4 ER Visit RNAseq (Bulk) For Lecture 5 Rats For Lecture 7 scRNAseq  

Lecture 2

September 30, 2026 Slides Jupyter Notebook HW2 (Due on Friday Oct 2nd) In an epigenome-wide survey of normal bronchial cells brushed and primary-cultured from 54 donors, we investigated if average cytosine methylation was associated with history of  smoking.  (https://pubmed.ncbi.nlm.nih.gov/39980243/) In this data set , you will find the global average methylation level, smoking status (0: never smoker, 1: former smoker, 2: current smoker), age, sex (-1: Female, 1: Male), cancer status (0: no cancer, 1: had cancer), and COPD status (0: No, 1: Yes).  Investigate: 1. If global methylation level is associated with smoking status 2. If global methylation level is associated with age among never smokers Note that you must justify that your choice of statistical test is appropriate.   Take home messages 1. Earn your right for modeling 2. All models are wrong, some are useful 3. principle of least Squared Estimate 4. decomposition of the total variation and $R...

Mount Google Drive for Colab

We often need to read some data files into R, and it is a bit tricky with google colab as it doesn't have access to the files saved in your local drive.  The solution is to upload the date files to your google drive. I highly recommend you open a new google account designated for this class only (or your other school work) so that they don't get mixed up with your personal stuff.  We still need to take a few extra steps, but fortunately I believe that you only need to do this once, or once a while.  Here is the tricky part. Although we only want to use R, we need to run some Python code first to mount google drive. First make sure that you change the runtime to Python 3, then run the code below,  from google.colab import drive drive.mount( '/content/drive' ) A new browser window will pop up and ask you for permission to access google drive. C lick on the top box to gives google colab the full access.  Then run the line below, also under the python load_ext rp...

Lecture 1

Sept 28, 2026 Some Online Source of Learning R Online Resource at Einstein  https://einsteinmed.edu/centers/ictr/biostatistics-epidemiology-research-design-core/berd-house R tutorial for beginners:  https://swirlstats.com/students.html [an interactive tutorial that runs right inside R. You select a topic you want to learn, and it guides you through the lesson, asking questions along the way right at the R console] http://www.r-tutor.com/r-introduction https://learningstatisticswithr.com/book/introR.html https://www.w3schools.com/R/ https://www.learn-r.org/ R cheat sheet: https://rstudio.com/resources/cheatsheets/ Data analysis using R:  https://stats.idre.ucla.edu/r/ [nice description of various statistical methods and example] http://www.sthda.com Search online stackoverflow.com stackexchange.com Notes in Powerpoint

Syllabus

Image
   qsbrii2026.blogspot.com Policy on attendance, video recording, and remote access 1. All lectures are in-person. Attending the first lecture is required. Students are strongly encouraged to attend lectures, especially for R-sessions.  2. The video recordings of the lectures will NOT be available except for approved accommodation of learning disability.  3. Remote access by zoom will be available. However, all attendees will be muted and all questions can ONLY be communicated through chat . I expect that you will join zoom from a private and quiet environment.  4. Office hour by Zoom is available by appointment.  Canvas vs blogspot.com 1. ALL lecture notes, homework assignments, and other teaching material are available on qsbrii2026.blogspot.com. 2. Canvas will be used for class announcement, and have links to notes on qsbrii2026.blogspot.com.  Time and Location  MW 1:20-2:40 F 1:20-3:00 Foch 3rd floor Lecture Hall  or ED Center lower floor...