-
Fix bugs with
collapse.history
. -
Set
shade.post = FALSE
by default.
Add links to the JSS paper.
-
Add
collapse.history
to allow users to collapse unit by treatment history in atreat
plot. -
Add
show.missing
to output missing data summary statistics for the key variables. -
Add
axis.lab.angle
to allow users to change the angle of the axis labels on the x-axis. -
Allow
pre.post
to be applied to anoutcome
plot. -
Change the color scheme in the
outcome
plot. -
Fix bugs.
-
Add
by.cohort
to allow users to plot the average outcome trajectories of units with the same treatment history (if the number of unique treatment history is less than 20). -
The old version (v.1.1.6) can be found here; its user's guide here.
-
Add
by.group.side
to arrange subfigures ofby.group = TRUE
in a row rather than in a column. -
Add
display.all
to show all units if the number of units is more than 500, otherwise we randomly select 500 units to present.
-
Add a new option
leave.gap
to keep gaps in time using white bars when the time variable is not evenly distributed (possibly due to missing data). -
Add
type(missing)
to plot the missingness in data.
-
We replace the function name panelView with panelview to be consistent with the Stata version.
-
In the outcome plot, we use a dot to represent the last-period observation of a unit that gets treated in the last period.
Plot time series of outcome and treatment in one graph (type = "bivar"
). The default is to plot mean D and Y against time in the same graph. To plot by each specified unit, add option by.unit = TRUE
. Use style = c("","")
to set line/connected line/bar styles for the outcome and treatment variables and ylim = list(c( , ), c( , ))
to zoom in or out the figure. lwd
is for line width adjustment.
Add a new option treat.type
to control whether the treatment variable should be seen as a continuous (treat.type = "continuous"
) or discrete (treat.type = "discrete"
) variable.
- Change the plot
type
: we now use"treat"
("missing"
in earlier versions) to plot treatment status and"outcome"
("raw"
in earlier versions) to plot raw outcomes. - Allow >2 treatment levels.
- Add a new option
pre.post
to distinguish pre- and post-treatment observations for treated units in a DID setting. - Replace options
by.treatment
withby.timing
andtreatment
withignore.treat
for easier interpretations. - Add fontsize options.
Fix typos. CRAN release.
- Allow users to plot treated units on top of control units in the "missing" plot.
- Streamline the
color
option for both the "missing" and "raw" plots.
- Allow users to change the color of bricks in the "missing" plot.
- Allow users to leave the treatment blank in both the "missing" and "raw" plots.