Add links to the JSS paper.
Add collapse.history
to allow users to collapse unit by treatment history in a treat
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 an outcome
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 of by.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.
type
: we now use "treat"
("missing"
in earlier versions) to plot treatment status and "outcome"
("raw"
in earlier versions) to plot raw outcomes. pre.post
to distinguish pre- and post-treatment observations for treated units in a DID setting.by.treatment
with by.timing
and treatment
with ignore.treat
for easier interpretations.Fix typos. CRAN release.
color
option for both the "missing" and "raw" plots. Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.