powered by
Title: Calculates mean and variance of mixture of two truncated normal distributions
tnorm_mixture_conditional(mu, var, lower, upper, K_i, K_pop)
mean and variance of mixture distribution between two truncated normal distributions
Mean value of normal distribution.
Variance of normal distribution.
Lower threshold (can be -Inf).
Upper threshold (can be Inf).
(Stratified) cumulative incidence proportion for the individual.
Population prevalence (cumulative incidence proportion).
tnorm_mixture_conditional(mu = 0, var = 1, lower = -Inf, upper = Inf, K_i = 0, K_pop = 0.01) tnorm_mixture_conditional(mu = 0, var = 1, lower = -Inf, upper = 2, K_i = .01, K_pop = 0.05)
Run the code above in your browser using DataLab