get_ST_prob_term()
get_ST_prob_term.Rd
Helper function that generates Stan code to compute P(e via ST) for %ST calculation
Usage
get_ST_prob_term(
transmission_func,
is_distribution = FALSE,
separate_s = FALSE,
veff_ID = c(),
num_networks = 1,
s_var = "s_prime",
id_var = "id",
trial_var = "trial",
time_var = "time_step",
net_var = "A",
ILVs_variable_effects = "",
weibull_term = "",
high_res = F
)
Arguments
- transmission_func
String (e.g. "standard", "freqdep_f", "freqdep_k")
- is_distribution
Boolean: Are edges drawn from posterior?
- separate_s
Boolean: Is s estimated separately per network?
- veff_ID
Character vector: Which params vary by ID
- num_networks
Integer: Number of networks
- s_var
String to use for s variable: e.g. "s_prime"
- id_var
String for id indexes: e.g., "id"
- trial_var
String for trial indexes: e.g., "trial"
- time_var
String: e.g., "time_step"
- net_var
String: e.g., "A"
- ILVs_variable_effects
String containing ILV effects on s
- weibull_term
String containing gamma etc
- high_res
boolean indicating if high_res