plotlmB: Plot 2D regression line from lmB

View source: R/plotlmB.r

plotlmBR Documentation

Plot 2D regression line from lmB

Description

#' Plot 2D regression line from lmB

Usage

plotlmB(x, y, mcmcList, data = NULL, ...)

Arguments

mcmcList

a mcmc list (out put from lmB)

prediction

if TRUE, prediction intervals are drawn

Author(s)

JuG

Examples

nbPoints = 20
x <-seq(1,10, length = nbPoints)
y <- 3 * x + rnorm(nbPoints, 0,6) + 10
outlmB <- lmB(formula = y~x,returnCodaSamples = T)
plotlmB(x,y,mcmcList = outlmB, ylim=c(0,50))

jgodet/utilitR documentation built on May 16, 2024, 12:01 p.m.