prop_detectable | R Documentation |
Gives the proportion of infections still detectable over a range of times since infection (referred to as 'ages')
prop_detectable(ages, pars, viral_loads)
ages |
Vector of times since infection. |
pars |
Model parameters. |
viral_loads |
Observed viral loads. |
Returns a vector of probabilities.
James Hay, jhay@hsph.harvard.edu
Other likelihood functions:
likelihood_R()
,
likelihood_cpp_wrapper()
,
likelihood_detectable()
,
likelihood_pos_R()
,
p_a()
,
prob_detectable_curve()
,
prop_detectable_single()
data(example_gp_partab)
pars <- example_gp_partab$values
names(pars) <- example_gp_partab$names
test_ages <- seq(1,50,by=1)
cts <- viral_load_func(pars, test_ages)
prop_detect <- prop_detectable(test_ages,pars, cts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.