Learn R Programming

analogue (version 0.17-7)

predict.logitreg: Posterior probability of analogue-ness for fossil samples

Description

Predict the posterior probability of analogue-ness between fossil and training set samples based on logistic regression fits.

Usage

# S3 method for logitreg
predict(object, newdata, group = "all", k = 1, ...)

Value

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+1\)th 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).

Arguments

object

an object of class "logitreg", resulting from a call to logitreg.

newdata

an object of class "distance" representing the dissimilarity between fossil samples and those from the training set.

group

character; for which group(s) are predictions sought. "all", the default, indicates that predictions for all groups and the combined analysis are produced. Currently ignored.

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 k should require refitting the logistic regression model with that number of close modern analogues considered.

...

additional arguments passed to other methods.

Author

Gavin L. Simpson

See Also

See logitreg for example usage. cma for extraction of close modern analogue information and analog for the underlying computations.