predict.pensynth {pensynth} | R Documentation |
Create prediction from pensynth model
Description
Matrix multiplies the values in newdata
by the unit weights
extracted from the pensynth object to produce predicted
values.
Usage
## S3 method for class 'pensynth'
predict(object, newdata, ...)
Arguments
object |
a fitted cvpensynth model |
newdata |
N_values * N_donors matrix of values for the donor units. |
... |
ignored |
Value
a matrix (column vector) of predicted values
[Package pensynth version 0.5.1 Index]