Question: Study the following code example and add comments to describe what it does. Ensure you comment on each line of the code library ( tidyverse

Study the following code example and add comments to describe what it does. Ensure you comment on each line of the code
library(tidyverse)
library(MASS) l
oad("./data/assess_data_0824-resit.Rdata")
idx <-20
c_cl <-10:30
boxplot(log2(Y[, c_cl]+1))
x <- patient_data$tissue[c_cl]
z <- patient_data$patient[c_cl]
tmp <- data.frame(y = Y[idx, c_cl], x = x, z = z, lib_size = colSums(Y[, c_cl]))
out <- glm(y ~ x + z + lib_size, data = tmp, family = "poisson")
p_val <- summary(out)$coefficients[2,4]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!