idd.pplot: Plot the p-values.

Description Usage Arguments Value Examples

View source: R/idd.pplot.R

Description

idd.gplot takes an output object after idd and plots time-varying p-values for the effect using ggplot2.

Usage

1
idd.pplot(x, alpha = 0.05)

Arguments

x

Name of the idd output object.

alpha

Set alpha value for the significance region (defaults to 0.05).

Value

Returns a ggplot of the estimated time-varying p-values for the effect based on the selected control group.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
data(simpanel)
idd.out <- idd(eventvar="y",
             popvar="pop",
             idvar="age",
             timevar="time",
             postvar="post",
             treatvar="treat",
             data=simpanel)
plot.out <- idd.pplot(idd.out)

## End(Not run)

carlbona/idd documentation built on May 19, 2019, 10:48 p.m.