Select optimal degree with a given regression coefficients.
maple.dr(
x,
y,
M,
regr,
...,
interval = c(0, 1),
alpha = NULL,
vb = 0,
baseline = NULL,
controls = mable.ctrl(),
progress = TRUE,
message = TRUE
)
A list with components
m
the given or a selected degree by method of change-point
p
the estimated vector of mixture proportions m
alpha
the given regression coefficients
mloglik
the maximum log-likelihood at degree m
interval
support/truncation interval (a,b)
baseline
="control" if
M
the vector (m0, m1)
, where m1
, if greater than m0
, is the
largest candidate when the search stoped
lk
log-likelihoods evaluated at
lr
likelihood ratios for change-points evaluated at
pval
the p-values of the change-point tests for choosing optimal model degree
chpts
the change-points chosen with the given candidate model degrees
original two sample raw data, x
:"Control", y
: "Case".
a positive integer or a vector (m0, m1)
.
regressor vector function
additional arguments to be passed to regr
a vector (a,b)
containing the endpoints of
supporting/truncation interval of x and y.
a given regression coefficient, missing value is imputed by logistic regression
code for vanishing boundary constraints, -1: f0(a)=0 only, 1: f0(b)=0 only, 2: both, 0: none (default).
the working baseline, "Control" or "Case", if NULL
it is chosen to the one with smaller estimated lower bound for model degree.
Object of class mable.ctrl()
specifying iteration limit
and the convergence criterion for EM and Newton iterations. Default is
mable.ctrl
. See Details.
logical: should a text progressbar be displayed
logical: should warning messages be displayed
Zhong Guan <zguan@iu.edu>
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 m
based on y
is smaller that that based on x
, then switch x
and y
and
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
.
Guan, Z., Maximum Approximate Bernstein Likelihood Estimation of Densities in a Two-sample Semiparametric Model