View source: R/sampling_fcts_KMR.R
This function computes the log likelihood for the binary data for the n schools, when the probability of obesity at school i is linked through a logistic regression to covariates X_i (the i-th row of the design matrix X refers to the p covariates - including the intercept - relative to school i), with h(z_i) being the kernel machine regression value at school i
1 | binary.logreg.loglik(y, h.z, X, beta, n)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.