Skip to content

Commit

Permalink
Update summary_table
Browse files Browse the repository at this point in the history
  • Loading branch information
Matias-Lopez-13 authored Jun 20, 2024
1 parent 565d243 commit 60b799e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions R/summary_table
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

DrBristol<-function(obs_support,total_obs){


find_p <- function(obs_support,total_obs){
## Test to make sure that obs_support is less than or equal to total_obs
stopifnot("The number of observations in favor of the working hypothesis must be less than or equal to the total number of observations"=obs_support<=total_obs)
Expand Down Expand Up @@ -50,12 +53,14 @@ sens_analysis <- function(obs_support, obs_oppose, total_obs, p_thresh1=0.05,p_t

### below is my attempt to make an output table


# placing information in dataframe
table_data <- data.frame(
table <- data.frame(
"p-value" = thep,
"Odds ratio to p=0.05" = the_found_dens1,
"Odds ratio to p=0.10" = the_found_dens2
)

# Print the table
print(knitr::kable(table_data, align = "c"), type = "text")
print(knitr::kable(table, align = "c"), type = "text")
}

0 comments on commit 60b799e

Please sign in to comment.