Changelog
panelView 1.1.18
CRAN release: 2024-06-17
Fix bugs with
collapse.history
.Set
shade.post = FALSE
by default.
panelView 1.1.16
CRAN release: 2023-02-14
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.
panelView 1.1.10
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.
panelView 1.1.8
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.
panelView 1.1.7
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.
panelView 1.1.6
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.
panelView 1.1.4
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.
panelView 1.1.2
CRAN release: 2019-03-13
- 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.