binomRegMethModelPlot {SOMNiBUS}R Documentation

Plot the smooth covariate effect

Description

This function accepts an output object from function binomRegMethModel and print out a plot of the estimated covariate effect across the region for each test covariate.

Usage

binomRegMethModelPlot(BEM.obj, mfrow = NULL, same.range = FALSE)

Arguments

BEM.obj

an output object from function binomRegMethModel

mfrow

the plot parameters to specify the layout of each plot

same.range

specify whether the plots should be in the same vertical scale

Value

This function prints out a plot of smooth covariate effects and its pointwise confidence intervals

Author(s)

Kaiqiong Zhao

Examples

#------------------------------------------------------------#
head(RAdat)
RAdat.f <- na.omit(RAdat[RAdat$Total_Counts != 0, ])
out <- binomRegMethModel(
  data=RAdat.f, n.k=rep(5, 3), p0=0.003307034, p1=0.9,
  epsilon=10^(-6), epsilon.lambda=10^(-3), maxStep=200, detail=FALSE,
  Quasi = FALSE, RanEff = FALSE
)
binomRegMethModelPlot(out, same.range=FALSE)

[Package SOMNiBUS version 1.2.0 Index]