View source: R/frequentist_eb.R
adj_profile_likelihood_theta_var_maker | R Documentation |
A maker function that returns a function. The returned function is the adjusted profile likelihood of the data for a given (latent) variance, from Yoshimori & Lahiri (2014).
adj_profile_likelihood_theta_var_maker(X, Y, D)
X |
observed independent data to be analyzed |
Y |
observed dependent data to be analyzed |
D |
known precisions of response |
Returns the adjusted profile likelihood as a function of the variance term in the latent model.
Marten Thompson thom7058@umn.edu
X <- matrix(1:10, ncol=1)
Y <- 2*X + rnorm(10, sd=1.1)
D <- rep(1, 10)
adj.lik <- adj_profile_likelihood_theta_var_maker(X, Y, D)
adj.lik(0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.