R/plot.swgee.R

Defines functions plot.swgee

Documented in plot.swgee

plot.swgee <-
function(x, covariate, ...)
{  
    if(is.na(match(as.character(covariate), all.vars(x$formula))))
        stop("covariate not specified in the formula")
    
    plot(x$simex.plot[,covariate] ~ x$simex.plot$lambda, type="b", xlab = expression(lambda), ylab=as.character(covariate))

}

Try the swgee package in your browser

Any scripts or data that you put into this service are public.

swgee documentation built on May 2, 2019, 10:25 a.m.