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 60b799e commit c970ab7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions R/summary_table
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ sens_analysis <- function(obs_support, obs_oppose, total_obs, p_thresh1=0.05,p_t
theodds1 <- uniroot(f = find_odds, interval = c(.0001, n * 10), trace = 2, extendInt = "yes")
found_odds1 <- theodds1$root
the_found_dens1 <- dFNCHypergeo(seq(0, obs_support), m1 = obs_support, m1 = obs_oppose, n = total_obs, odds = found_odds1)
return(the_found_dens1)
}

sens_analysis <- function(obs_support, obs_oppose, total_obs, p_thresh1=0.05,p_thresh2=0.1) {
Expand All @@ -47,7 +46,6 @@ sens_analysis <- function(obs_support, obs_oppose, total_obs, p_thresh1=0.05,p_t
theodds2 <- uniroot(f = find_odds, interval = c(.0001, n * 10), trace = 2, extendInt = "yes")
found_odds2 <- theodds2$root
the_found_dens2 <- dFNCHypergeo(seq(0, obs_support), m1 = obs_support, m1 = obs_oppose, n = total_obs, odds = found_odds2)
return(the_found_dens2)
}


Expand Down

0 comments on commit c970ab7

Please sign in to comment.