Description Usage Arguments References Examples
View source: R/probabilistic_dropouts.R
Calculate the density under a censoring mechanism that probabilistically
causes dropouts described with rho
and zeta
. The data is drawn
from a normal with mu
and sigma2 * nobs
, but each value drops out with
probability according to a inverse probit with its center at rho
and width
zeta
:
p(x | μ, σ2, ρ, ζ) ~ Normal(x; μ, σ2) Prod_i Φ(x; ρ_i, ζ_i)
The distribution is related to the extended skewed normal distribution and formally belongs to the class of closed skewed normals.
1 2 |
x |
vector of input positions. |
mu |
double. The mean of the observed values. |
sigma2 |
double. The variance of the mu estimate. |
rho |
vector. The positions of the inflection points of the dropout
curves for each sample. Can also be a single number that is repeated
|
zeta |
vector. The scale of the dropout curves for each sample.
Can also be a single number that is repeated |
nmis |
integer The number of missing values.
Defaults to |
log |
boolean if the log of the density is returned. |
1. Azzalini, A. & Capitanio, A. The Skew-Normal and Related Families. (Cambridge University Press, 2013). doi:10.1017/CBO97811392488911.
2. González-Farías, G., Domínguez-Molina, A. & Gupta, A. K. Additive properties of skew normal random vectors. J. Stat. Plan. Inference 126, 521–534 (2004). doi:10.1016/j.jspi.2003.09.008
1 2 | xg <- seq(-5, 5, length.out=101)
plot(xg, dprobdropout(xg, mu=0, sigma2=3, rho=0, zeta=1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.