forest.dat: Prepare dataset for Forest plot in Shiny App

View source: R/lhplot.R

forest.datR Documentation

Prepare dataset for Forest plot in Shiny App

Description

Generate dataset for coveffectsplot

Usage

forest.dat(
  data = t,
  parameter = c("Cmax..ng.mL.", "AUCtau..ng.h.mL."),
  catcov = c("Cohort", "WT_group"),
  stats = c("quantile(x,0.5)=mid", "quantile(x,0.05)=lower", "quantile(x,0.95)=upper",
    "length(x)=n"),
  N = T
)

Arguments

data

data frame (prepare categorical covariates before hand)

parameter

list of parameters

catcov

list categorical covariates.

stats

define statistics for mid, lower and upper.

N

number of subjects to be included

Examples

dat<-forest.dat(data=t,parameter=c("Cmax..ng.mL.","AUCtau..ng.h.mL."),catcov=c("Cohort","WT_group"),stats=c("quantile(x,0.5)=mid","quantile(x,0.05)=lower","quantile(x,0.95)=upper","length(x)=n"))
Save dataset as CSV then open shiny APP using coveffectsplot::run_interactiveforestplot(). The package could be installed from Github: devtools::install_github('smouksassi/coveffectsplot')

leonpheng/lhplot documentation built on April 13, 2025, 1:48 p.m.