Skip to content

Commit

Permalink
Fixed reverse GP function
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshay218 committed May 17, 2021
1 parent dfdaff3 commit eea4390
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/incidence_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ reverse_gp_model <- function(desired_probs, pars, times){


ps <- sum(desired_probs)*desired_probs + 0.000000001
ps <- pars["overall_prob"]*ps/sum(ps)
k1 <- -log((1/ps) -1)

k_solve <- (k1 %*% solve(t(L_K)))[1,]
Expand Down

0 comments on commit eea4390

Please sign in to comment.