extracting other params from logistic

This commit is contained in:
Tanushree Tunstall 2020-06-22 14:11:16 +01:00
parent ada205962b
commit 8f272bdc17
3 changed files with 94 additions and 31 deletions

View file

@ -388,7 +388,6 @@ pvals_logistic = sapply(gene_snps_unique,function(m){
mut = grepl(m,raw_data$all_muts_gene)
#print(table(dst, mut))
model<-glm(dst ~ mut , family = binomial)
#or_logistic = exp(summary(model)$coefficients[2,1])
pval_logistic = summary(model)$coefficients[2,4]
})