View source: R/extreme_case_control.R
llh_mecc_cond | R Documentation |
<Private function> Negative log-likelihood in weighted analysis of (M)ECC sample
llh_mecc_cond(beta, x_mat, y_name, set_id_name, surv, surv_tau, mecc)
beta |
A vector of regression coefficients corresponding to
|
x_mat |
A |
y_name |
A string indicating cases and controls in |
set_id_name |
A string indicating the ID of matched sets in the (M)ECC data. See Details. |
surv |
Estimated baseline survival probability for each subject in
|
surv_tau |
Estimated baseline survival probability evaluate at time
|
mecc |
(M)ECC data. A |
This function implements the conditional approach described in
Section 2.2.1 of Salim et al 2014. This requires controls to be
"individually matched" to each control. If users used the function
draw_mecc
to draw the MECC sample, the sample would include a
variable that indicates the matched sets, and two variables corresponding
to surv
and surv_tau
. Otherwise users should randomly match
each case to controls (within strata if the MECC sample is matched on
confounder(s)) and compute them from the full cohort as described in
Section 2.2 of Salim et al 2014.
Returns the negative log-likelihood in the weighted analysis of a (more) extreme case-control sample.
Yilin Ning, Nathalie C Støer
Salim A, Ma X, Fall K, et al. Analysis of incidence and prognosis from 'extreme' case–control designs. Stat Med 2014; 33: 5388–5398.
Støer NC, Salim A, Bokenberger K, et al. Is the matched extreme case–control design more powerful than the nested case–control design?. Stat Methods Med Res 2019; 28(6): 1911-1923.
draw_mecc
, analyse_mecc_cond
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.