Learn R Programming

concurve (version 1.0.5)

plotpint: Plot the P-Value Function

Description

Takes the dataframe produced by the interval functions and plots the p-values, compatibility (confidence) levels, and the interval estimates to produce a p-value functionusing the geom_point function in ggplot2.

Usage

plotpint(x)

Arguments

x

The dataframe produced by one of the interval functions in which the intervals are stored.

Value

Plot with intervals at every compatibility level graphed with their corresponding p-values and compatibility levels.

References

Poole C. Beyond the confidence interval. Am J Public Health. 1987;77(2):195-199.

Sullivan KM, Foster DA. Use of the confidence interval function. Epidemiology. 1990;1(1):39-42.

Rothman KJ, Greenland S, Lash TL, Others. Modern epidemiology. 2008.

Examples

Run this code
# NOT RUN {
# Simulate random data

GroupA<-rnorm(50)
GroupB<-rnorm(50)

RandomData<-data.frame(GroupA, GroupB)
RandomModel<-lm(GroupA ~ GroupB, data=RandomData)

intervalsdf<-genintervals(RandomModel, "GroupB")

p<-plotpint(intervalsdf)
p
# }

Run the code above in your browser using DataLab