Learn R Programming

mcr (version 1.3.3.1)

MCResultJackknife.plotwithRJIF: Plotting the Relative Jackknife Influence Function

Description

The function draws reference method vs. test method as scatter plot. Observations with high influence (relative jackknife influence function is greater than 2) are highlighted as red points.

Usage

MCResultJackknife.plotwithRJIF(.Object)

Value

No return value

Arguments

.Object

object of class "MCResultJackknife" or "MCResultResampling"

References

Efron, B. (1990) Jackknife-After-Bootstrap Standard Errors and Influence Functions. Technical Report , N 134.

Examples

Run this code
    #library("mcr")
    data(creatinine,package="mcr")
    x <- creatinine$serum.crea
    y <- creatinine$plasma.crea
    # Deming regression fit.
    # The confidence intervals for regression coefficients
    # are calculated with jackknife method
    model <- mcreg( x,y,error.ratio=1,method.reg="Deming", method.ci="jackknife",
                     mref.name = "serum.crea", mtest.name = "plasma.crea", na.rm=TRUE )
    plotwithRJIF(model)

Run the code above in your browser using DataLab