ggdid: ggdid

Description Usage Arguments Examples

View source: R/did.R

Description

Function to plot MP objects

Usage

1
2
ggdid(mpobj, ylim = NULL, xlab = NULL, ylab = NULL,
  title = "Group", xgap = 1, ncol = 1)

Arguments

mpobj

an MP object

ylim

optional y limits for the plot; settng here makes the y limits the same across different plots

xlab

optional x-axis label

ylab

optional y-axis label

title

optional plot title

xgap

optional gap between the labels on the x-axis. For example, xgap=3 indicates that the labels should show up for every third value on the x-axis. The default is 1.

ncol

The number of columns to include in the resulting plot. The default is 1.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(mpdta)
out <- mp.spatt(lemp ~ treat, xformla=~lpop, data=mpdta,
                panel=TRUE, first.treat.name="first.treat",
                idname="countyreal", tname="year",
                bstrap=FALSE, se=TRUE, cband=FALSE)
ggdid(out)

## End(Not run)

did documentation built on Oct. 17, 2018, 1:03 a.m.