# predict.copulareg

0th

Percentile

##### predict

Computes predictions based on a fitted copulareg model.

##### Usage
# S3 method for copulareg
predict(object, new_x = NULL, eps = 0.01, cont_method = "Localmedian", ...)
##### Arguments
object

Model fit as returned by copulareg

new_x

optional matrix of covariate values to compute the predicted values of the outcome for. If not specified, the predicted values for the training sample is returned.

eps

Interval between each interpolation point when integrating to evaluate the predicted value of y, in the case where y is continuous. If y is discrete this parameter is ignored.

cont_method

Specifies the method used to compute the expected values. Can be specified as 'Localmedian' or 'Trapezoidalsurv'. The first method divides the range of the observed values of y into subintervals according to the argument 'eps', where the sub-integral is approximated as the measure of the interval weighted by the local median on the interval. The second method computes the integral by integrating the survival function using the trapezoidal rule, by transforming the outcome into a positive variable by adding a constant.

...

unused.

##### Value

A vector of predicted y-values for each row of new_x, or for the training data if new_x is not supplied.

##### Aliases
• predict.copulareg
Documentation reproduced from package copulareg, version 0.1.0, License: MIT + file LICENCE

### Community examples

Looks like there are no examples yet.