plmm_loss | R Documentation |
Loss method for "plmm" class
plmm_loss(y, yhat)
y |
Observed outcomes (response) vector |
yhat |
Predicted outcomes (response) vector |
A numeric vector of the squared-error loss values for the given observed and predicted outcomes
admix_design <- create_design(X = admix$X, y = admix$y)
fit <- plmm(design = admix_design, K = relatedness_mat(admix$X))
yhat <- predict(object = fit, newX = admix$X, type = 'lp', lambda = 0.05)
head(plmm_loss(yhat = yhat, y = admix$y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.