Learn R Programming

clikcorr (version 1.0)

plot.clikcorr: Graphical function for visualizing bivariate profile likelihood.

Description

Produces a plot of the profile log likelihood function.

Usage

"plot"(x, type = "l", lwd = 2, col = "red", ...)

Arguments

x
a "clikcorr" object.
type
line type.
lwd
line weight.
col
line color.
...
not used.

Details

produces a plot of the profile log likelihood function.

References

Yanming Li, Kerby Shedden, Brenda W. Gillespie and John A. Gillespie (2016). Calculating Profile Likelihood Estimates of the Correlation Coefficient in the Presence of Left, Right or Interval Censoring and Missing Data.

Examples

Run this code

data(ND)
logND <- log(ND)
logND1 <- logND[51:90,]

obj <- clikcorr(logND1, "t1_OCDD", "t2_OCDD", "t1_HxCDF_234678", "t2_HxCDF_234678")
plot(obj, type="o")

## Not run: 
# obj <- clikcorr(logND, "t1_OCDD", "t2_OCDD", "t1_HxCDF_234678", "t2_HxCDF_234678")
# plot(obj, type="o", col="blue", lwd=1)
# ## End(Not run)

Run the code above in your browser using DataLab