idd.dplot: Plot the raw data.

Description Usage Arguments Value Examples

View source: R/idd.dplot.R

Description

idd.dplot takes an output object after idd and plots the raw data using ggplot2.

Usage

1
idd.dplot(x, mult = 1e+05, donor = FALSE)

Arguments

x

Name of the idd output object.

mult

Multiplier for the rates (default=100000).

donor

Plot data from the entire donor pool as well? Defaults to FALSE.

Value

Returns a ggplot of raw data (without standardization and removal of fixed effects).

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.dplot(idd.out)

## End(Not run)

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