predict.logitreg {analogue} | R Documentation |
Predict the posterior probability of analogue-ness between fossil and training set samples based on logistic regression fits.
## S3 method for class 'logitreg' predict(object, newdata, group = "all", k = 1, ...)
object |
an object of class |
newdata |
an object of class |
group |
character; for which group(s) are predictions
sought. |
k |
numeric; the number of close modern analogues to each fossil
sample to consider. Not currently used and may be removed from the
method as varying |
... |
additional arguments passed to other methods. |
A matrix of posterior probabilities of analogue-ness is returned. The rows represent the fossil samples and the columns the groupings. There are g+1 columns where g is the number of groups. The g+1th column represents the Combined analysis which is the overall posterior probability that a fossil sample is an analogue to a training set sample (i.e. to any one of the groups).
Gavin L. Simpson
See logitreg
for example usage. cma
for
extraction of close modern analogue information and
analog
for the underlying computations.