Learn R Programming

pairwiseCI (version 0.1-21)

as.data.frame.pairwiseCI: Coercing pairwiseCI objects to data.frames

Description

Creates a data.frame from the output of pairwiseCI.

Usage

## S3 method for class 'pairwiseCI':
as.data.frame(x, ...)

Arguments

x
an object of class pairwiseCI
...
currently not used

Value

  • A data.frame with the columns
  • estimatecontaining the estimates
  • lowercontaining the lower bounds
  • uppercontaining the upper bounds
  • comparisoncontaining character strings, specifying which levels have been compared
  • and if the argument by has been specified,
  • bycontaining the levels by which the original data set has been split
  • and the conf.level and a character string naming the used method.

See Also

pairwiseCI, summary.pairwiseTest

Examples

Run this code
data(bean)

out<-pairwiseCI(yield~P, data=bean, by="T", method="Param.diff",
 var.equal=FALSE, alternative="greater")

out

dat<-as.data.frame(out)

dat

str(dat)

# # # #

data(repellent)

out2<-pairwiseCI(decrease~treatment, data=repellent, control="H",
 alternative="two.sided", method="Param.ratio")

out2

as.data.frame(out2)

Run the code above in your browser using DataLab