Then resample the particles based on the weights at time k to obtain the forecast particles for the time points up to k.
This part is missing in the app. Corrected in the document
Then resample the particles based on the weights at time k to obtain the forecast particles for the time points up to k.
This part is missing in the app. Corrected in the document
for (i in 1:N) { likelihoods[i] <- likelihood(n, n_pos, predicted[i], method = "binomial") }
Can vectorize?
glm_mod
Keep only province for now
c(0, 40, 60, 80, 100),
Use 60 as cutoff: 2 groups
ICDbroad
Gout, proteinuria, KRT -> combine as Other
Figure 5. Comparison for total admission rate vs total admission number by year
Need better visualization?
Filter latest 6m donations
This was removed and instead, donations during the first 12m were removed
Males: Steady state
Do percentages
posteriors on th
Get analytical for this
The likelihood is approximated
This has a nice close form in normal measurement error. Should check if it is still possible with t-errors.
for (s in 1:S) { bio_sims <- rnorm(K, theta_new_samples_pop[s], sigma_bio_samples[s, 1]) weights_k <- numeric(K) for (k in 1:K) { weights_k[k] <- exp(log(dt((y_new_1 - bio_sims[k]) / sigma_X_samples[s, 1], df = df_samples[s, 1] ) / sigma_X_samples[s, 1]) + log(dt((y_new_2 - bio_sims[k]) / sigma_X_samples[s, 1], df = df_samples[s, 1] ) / sigma_X_samples[s, 1])) } weights_steady[s] <- mean(weights_k, na.rm = T) }
something like: bio_sims <- rnorm((K, N), theta_new_samples, sigma_bio_samples) to sample a matrix of (K,N) normal random values and then plug that into dt(...) and then take the mean over the K axis of the matrix. Or you could at least vectorize the inner loop by first creating a vector of v_diff <- (y_new_1 - bio_sims)/sigma_X_samples and then do exp(log(dt(v_diff))... etc
instantaneous true Hb and steady-state Hb
can do a heatmap of the difference?
We have to estimate the likelihood
Can use a meta-model?
It seems like the
Can do noise calibration. X axis: Cr region percentage; Y axis: Proportion of data points included and do eCDF type graph, then decide on the optimum.
Or simply, select 80% coverage in 80% interval or so
ere is an add
add a dot at where resampling happens
Author
This is a test annotation. Change to full name
neous true Hb values
can simplify taking the summaries from the draws
The likelihood is a
meta model? See if the diff in the two posterior using a heatmap
Interactive app
This is the version 2 of the app with different colors above and below the threshold.
The state vector x is N dim
Test annotation
odel - conti
d
Supun Manathunga
This is a test annotation
Author
Annotaion "Author"
Particle Filter
Test annotation
continuous
This is a test comment