Title: | Semi-Supervised Mixture Model |
---|---|
Description: | Implements a parametric semi-supervised mixture model. The permutation test detects markers with main or interactive effects, without distinguishing them. Possible applications include genome-wide association analysis and differential expression analysis. |
Authors: | Armin Rauschenberger [aut, cre] |
Maintainer: | Armin Rauschenberger <[email protected]> |
License: | GPL-3 |
Version: | 1.31.0 |
Built: | 2024-10-31 05:18:28 UTC |
Source: | https://github.com/bioc/semisup |
This R package implements the semi-supervised mixture model.
Use mixtura
for model fitting,
and scrutor
for hypothesis testing.
Please type the following commands: utils::vignette("semisup")
?semisup::mixtura
?semisup::scrutor
A Rauschenberger, RX Menezes, MA van de Wiel, NM van Schoor, and MA Jonker (2020). "Semi-supervised mixture test for detecting markers associated with a quantitative trait", Manuscript in preparation.
This function fits a semi-supervised mixture model. It simultaneously estimates two mixture components, and assigns the unlabelled observations to these.
mixtura(y, z, dist = "norm", phi = NULL, pi = NULL, gamma = NULL, test = NULL, iter = 100, kind = 0.05, debug = TRUE, ...)
mixtura(y, z, dist = "norm", phi = NULL, pi = NULL, gamma = NULL, test = NULL, iter = 100, kind = 0.05, debug = TRUE, ...)
y |
observations:
numeric vector of length |
z |
class labels:
integer vector of length |
dist |
distributional assumption:
character |
phi |
dispersion parameters:
numeric vector of length |
pi |
zero-inflation parameter(s):
numeric vector of length |
gamma |
offset:
numeric vector of length |
test |
resampling procedure:
character |
iter |
(maximum) number of resampling iterations :
positive integer, or |
kind |
resampling accuracy:
numeric between |
debug |
verification of arguments:
|
... |
settings |
By default, phi
and pi
are estimated by the maximum likelihood method,
and gamma
is replaced by a vector of ones.
This function fits and compares a one-component (H0
)
and a two-component (H1
) mixture model.
posterior |
probability of belonging to class 1:
numeric vector of length |
converge |
path of the log-likelihood:
numeric vector with maximum length
|
estim0 |
parameter estimates under |
estim1 |
parameter estimates under |
loglik0 |
log-likelihood under |
loglik1 |
log-likelihood under |
lrts |
likelihood-ratio test statistic: positive numeric |
p.value |
|
A Rauschenberger, RX Menezes, MA van de Wiel, NM van Schoor, and MA Jonker (2020). "Semi-supervised mixture test for detecting markers associated with a quantitative trait", Manuscript in preparation.
Use scrutor
for hypothesis testing.
All other functions are internal
.
# data simulation n <- 100 z <- rep(0:1,each=n/2) y <- rnorm(n=n,mean=2,sd=1) z[(n/4):n] <- NA # model fitting mixtura(y,z,dist="norm",test="perm")
# data simulation n <- 100 z <- rep(0:1,each=n/2) y <- rnorm(n=n,mean=2,sd=1) z[(n/4):n] <- NA # model fitting mixtura(y,z,dist="norm",test="perm")
This function tests whether the unlabelled observations come from a mixture of two distributions.
scrutor(Y, Z, dist = "norm", phi = NULL, pi = NULL, gamma = NULL, test = "perm", iter = NULL, kind = NULL, debug = TRUE, ...)
scrutor(Y, Z, dist = "norm", phi = NULL, pi = NULL, gamma = NULL, test = "perm", iter = NULL, kind = NULL, debug = TRUE, ...)
Y |
observations:
numeric vector of length |
Z |
class labels:
numeric vector of length |
dist |
distributional assumption:
character |
phi |
dispersion parameter(s):
numeric vector of length |
pi |
zero-inflation parameter(s):
numeric vector of length |
gamma |
offset:
numeric vector of length |
test |
resampling procedure:
character |
iter |
(maximum) number of resampling iterations :
positive integer, or |
kind |
resampling accuracy:
numeric between |
debug |
verification of arguments:
|
... |
settings |
By default, phi
and pi
are estimated by the maximum likelihood method,
and gamma
is replaced by a vector of ones.
This function tests a one-component (H0
)
against a two-component mixture model (H1
).
y |
index observations |
z |
index class labels |
lrts |
test statistic |
p.value |
|
A Rauschenberger, RX Menezes, MA van de Wiel, NM van Schoor, and MA Jonker (2020). "Semi-supervised mixture test for detecting markers associated with a quantitative trait", Manuscript in preparation.
Use mixtura
for model fitting.
All other functions are internal
.
# data simulation n <- 100 z <- rep(0:1,each=n/2) y <- rnorm(n=n,mean=2*z,sd=1) z[(n/4):n] <- NA # hypothesis testing scrutor(y,z,dist="norm")
# data simulation n <- 100 z <- rep(0:1,each=n/2) y <- rnorm(n=n,mean=2*z,sd=1) z[(n/4):n] <- NA # hypothesis testing scrutor(y,z,dist="norm")