CompDB: Trajectories comparison

Description Usage Arguments Details Examples

View source: R/CompDB.R

Description

The function is useful to compare the means between set of groups

Usage

1
CompDB(data, axis, nref, ncomp)

Arguments

data

is the data base

axis

are the groups or levels which are defined to compare across the trajectory

nref

is the column or the set of columns of reference which you are interested to compare

ncomp

is the column or set of clumns used to compare "ref"

Details

This function shows a plot with the trajectory comparison between "ref" and "comp" arguments

Examples

1
2
3
4
5
6
month=1:12 ; A=trunc(rnorm(12,20,2)) ; B=trunc(rnorm(12,20,10)) ; C=trunc(rnorm(12,20,12))
D=trunc(rnorm(12,20,15)) ; df=data.frame(month,A,B,C,D)
example 1
CompDB(data=df,axis="month",nref="A",ncomp=c("B","C"))
example 2
CompDB(data=df,axis="month",nref=c("A","B"),ncomp=c("C","D"))

William-HC/ComparisonWH documentation built on Feb. 27, 2021, 12:33 a.m.