Usage
## S3 method for class 'masreml'
predict(
object,
G_full = NULL,
markers_new = NULL,
markers_train = NULL,
train_ids = NULL,
test_ids = NULL,
y_new = NULL,
X_new = NULL,
link = NULL,
jitter = 1e-06,
...
)
Details
The prediction formula per component k is:
\(\hat{u}_{test,k} = G_{te,tr,k} \cdot (G_{tr,tr,k} + \lambda_k I)^{-1} \cdot \hat{u}_{train,k}\)
where \(\lambda_k = \sigma^2_e / \sigma^2_{g,k}\).
For markers_new mode (SNP), the cross-G is:
\(G_{te,tr} = \frac{W_{te} W_{tr}'}{k}\)
where \(W\) matrices are centered using training allele frequencies and \(k = \sum 2p_j(1-p_j)\) computed from training data.
For binary trait, prediction is on the liability scale. Fitted probabilities are obtained by applying the inverse link function to \(\eta_{test} = \mu_{fixed} + \hat{u}_{test}\).