R/absval.iwres.vs.idv.R

Defines functions absval.iwres.vs.idv

Documented in absval.iwres.vs.idv

#' absolute value of the 
#' individual weighted residuals vs. the independent variable
#' 
#'
#' @inheritParams xpose.plot.default
#' @inheritParams xpose.panel.default
#' 
#' @return A lattice object
#' @export
#'
#' 
#' @family specific functions 
absval.iwres.vs.idv <-
  function(object,
           ylb  = "|iWRES|",
           smooth       = TRUE,
           idsdir       = "up",
           type         = "p",
           ...) {

    if(is.null(check.vars(c("idv","iwres"),
                          object,silent=FALSE))) {
      return()
    }



    xplot <- xpose.plot.default(xvardef("idv",object),
                                xvardef("iwres",object),
                                object,
                                ylb=ylb,
                                funy="abs",
                                idsdir=idsdir,
                                smooth=smooth,
                                type = type,
                                ...)
    
    return(xplot)
  }
UUPharmacometrics/xpose4 documentation built on Feb. 22, 2024, 5:02 p.m.