Description Usage Arguments Details Value
Functions to calculate the goodness-of-fit, fitted probabilities, or observed probabilities of different models
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | observed_freqencies(N)
fitted_ZINB(alpha, beta, omega, N, E)
fitted_MGPS(alpha1, alpha2, beta1, beta2, pi, N, E)
fitted_ZINB_two_gamma(alpha1, alpha2, beta1, beta2, pi, omega, N, E)
observed_freq_HZINB(N_ij)
fitted_HZINB_one_gamma_independence(
posterior_a_j,
posterior_b_j,
posterior_omega_j,
N_ij,
E_ij
)
gof(fitted_prob, observed_freq)
|
N |
vector of Nij values |
E |
vector of Eij values |
N_ij |
matrix of N_ij values, i - AE, j - drugs |
posterior_a_j |
vector of posterior mean a_j values for each drug (j) |
posterior_b_j |
vector of posterior mean b_j values for each drug (j) |
posterior_omega_j |
vector of posterior mean omega_j values for each drug (j) |
E_ij |
matrix of E_ij values, corresponding to N_ij |
fitted_prob |
a dataset of calculated fitted probability for each AE and drug pair |
observed_freq |
a dataset of calculated observed probability for each AE and drug pair |
Functions calculate observed probability for each AE and drug pair:
observed_freqencies
for MGPS, ZINB one gamma and ZINB two gamma models
observed_freq_HZINB
for HZINB model
Functions calculate fitted probability for each AE and drug pair:
fitted_MGPS
for MGPS model
fitted_ZINB
for ZINB one gamma model
fitted_ZINB_two_gamma
for ZINB two gamma model
fitted_HZINB_one_gamma_independence
for HZINB model
Function calculate goodness of fit of a model:
gof
observed_freqencies
functions returns the observed probability for MGPS model.
observed_frequencies
fitted_ZINB
functions returns the fitted probability for ZINB one gamma model.
fitted_ZINB
fitted_MGPS
functions returns the fitted probability for MGPS model.
fitted MGPS
fitted_ZINB_two_gamma
functions returns the fitted probability for ZINB two gamma model.
fitted ZINB two gamma
observed_freq_HZINB
functions returns the observed probability for HZINB model.
observed_freq_HZINB
fitted_HZINB_one_gamma_independence
functions returns the fitted probability for HZINB model.
fitted_HZINB_one_gamma_independence
gof
functions returns the goodness-of-fit of a model.
gof
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.