| maple.dr {mable} | R Documentation |
Maximum approximate profile likelihood estimate of the density ratio model
Description
Select optimal degree with a given regression coefficients.
Usage
maple.dr(
x,
y,
M,
regr,
...,
interval = c(0, 1),
alpha = NULL,
vb = 0,
baseline = NULL,
controls = mable.ctrl(),
progress = TRUE,
message = TRUE
)
Arguments
x, y |
original two sample raw data, codex:"Control", |
M |
a positive integer or a vector |
regr |
regressor vector function |
... |
additional arguments to be passed to regr |
interval |
a vector |
alpha |
a given regression coefficient, missing value is imputed by logistic regression |
vb |
code for vanishing boundary constraints, -1: f0(a)=0 only, 1: f0(b)=0 only, 2: both, 0: none (default). |
baseline |
the working baseline, "Control" or "Case", if |
controls |
Object of class |
progress |
logical: should a text progressbar be displayed |
message |
logical: should warning messages be displayed |
Details
Suppose that ("control") and y ("case") are independent samples from
f0 and f1 which satisfy f1(x)=f0(x)exp[alpha0+alpha'r(x)]
with r(x)=(r1(x),...,r_d(x)). Maximum
approximate Bernstein/Beta likelihood estimates of f0 and f1 are calculated
with a given regression coefficients which are efficient estimates provided
by other semiparametric methods such as logistic regression.
If support is (a,b) then replace r(x) by r[a+(b-a)x].
For a fixed m, using the Bernstein polynomial model for baseline f_0,
MABLEs of f_0 and parameters alpha can be estimated by EM algorithm and Newton
iteration. If estimated lower bound m_b for m based on y
is smaller that that based on x, then switch x and y and
f_1 is used as baseline. If M=m or m0=m1=m, then m is a
preselected degree. If m0<m1 it specifies the set of consective
candidate model degrees m0:m1 for searching an optimal degree by
the change-point method, where m1-m0>3.
Value
A list with components
-
mthe given or a selected degree by method of change-point -
pthe estimated vector of mixture proportionsp = (p_0, \ldots, p_m)with the given or selected degreem -
alphathe given regression coefficients -
mloglikthe maximum log-likelihood at degreem -
intervalsupport/truncation interval(a,b) -
baseline="control" iff_0is used as baseline, or ="case" iff_1is used as baseline. -
Mthe vector(m0, m1), wherem1, if greater thanm0, is the largest candidate when the search stoped -
lklog-likelihoods evaluated atm \in \{m_0, \ldots, m_1\} -
lrlikelihood ratios for change-points evaluated atm \in \{m_0+1, \ldots, m_1\} -
pvalthe p-values of the change-point tests for choosing optimal model degree -
chptsthe change-points chosen with the given candidate model degrees
Author(s)
Zhong Guan <zguan@iusb.edu>
References
Guan, Z., Maximum Approximate Bernstein Likelihood Estimation of Densities in a Two-sample Semiparametric Model