Advertisements I used the following code to retrieve a confidence level for my data: c <- t.test(my_data$my_col, conf.level = 0.95) c This returns something like: data: my_data$my_column t = 30, df = 20, p-value < 2.1e-14 alternative hypothesis: true mean is not equal to 0 95 percent confidence interval: 62.23191 80.11201 sample estimates: mean of… Read More How to extract lower and upper bounds from confidence level in R from t test function?
Advertisements I have a long dataframe like this: df <- structure(list(Tumor_type = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L), .Label = c("epithelial", "lymphoma", "healthy", "sarcoma"), class = "factor"), Gene = c("A", "B", "C", "A", "B", "C", "A", "B", "C", "A", "A", "B",… Read More Calculate p-values for each group
Advertisements I conducted t test on two data frames and stored results in two separate variables. They turned out to be lists. Now, I want to make a dataframe of t scores and p-values but I am not sure how to do that. I guess the lists are s3 class. The code. AML_ttest <- apply(aml_df,1,t.test)… Read More Convert two lists to dataframe in R