Last data update: 2014.03.03

R: Calculate location and scale parameters for candidate set of...
fullModR Documentation

Calculate location and scale parameters for candidate set of models

Description

Calculates location and scale parameters for all models in the candidate set using the maximum approach from Pinheiro et al. (2006). This is done by repeatedly calling the getPars function.

Usage

fullMod(models, doses, base, maxEff, off = 0.1*max(doses), scal = 1.2 * max(doses))

Arguments

models

A list specifying the candidate models. The names of the list entries should be equal to the names of the model functions. The list entries should be equal to the guesstimates

doses

Dose levels to be administered

base, maxEff

Baseline effect and maximum change from baseline to be used for calculating the location and scale parameters of the model

off

Offset parameter for the linear in log model

scal

Scale parameter for the beta model

Value

Returns an object of class fullMod, containing all parameter values for the models in a list.

References

Bornkamp B., Pinheiro J. C., Bretz, F. (2009). MCPMod: An R Package for the Design and Analysis of Dose-Finding Studies, Journal of Statistical Software, 29(7), 1–23

Pinheiro, J. C., Bornkamp, B. and Bretz, F. (2006). Design and analysis of dose finding studies combining multiple comparisons and modeling procedures, Journal of Biopharmaceutical Statistics, 16, 639–656

See Also

getPars, sampSize, powerMM, plotModels, LP

Examples

doses <- c(0, 10, 25, 50, 100, 150)                                        
models <- list(linear = NULL, emax = c(25),                                
               logistic = c(50, 10.88111), exponential = c(85),            
               betaMod = matrix(c(0.33, 2.31, 1.39, 1.39), byrow=TRUE,nrow=2))
fMod <- fullMod(models, doses, base = 0, maxEff = 0.4, scal = 200)                 
plot(fMod) # automatically calls the plotModels function

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(MCPMod)
Loading required package: mvtnorm
Loading required package: lattice
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MCPMod/fullMod.Rd_%03d_medium.png", width=480, height=480)
> ### Name: fullMod
> ### Title: Calculate location and scale parameters for candidate set of
> ###   models
> ### Aliases: fullMod
> ### Keywords: design
> 
> ### ** Examples
> 
> doses <- c(0, 10, 25, 50, 100, 150)                                        
> models <- list(linear = NULL, emax = c(25),                                
+                logistic = c(50, 10.88111), exponential = c(85),            
+                betaMod = matrix(c(0.33, 2.31, 1.39, 1.39), byrow=TRUE,nrow=2))
> fMod <- fullMod(models, doses, base = 0, maxEff = 0.4, scal = 200)                 
> plot(fMod) # automatically calls the plotModels function
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>