Changelog
panelView 1.1.18
CRAN release: 2024-06-17
Fix bugs with
collapse.history.Set
shade.post = FALSEby default.
panelView 1.1.16
CRAN release: 2023-02-14
Add
collapse.historyto allow users to collapse unit by treatment history in atreatplot.Add
show.missingto output missing data summary statistics for the key variables.Add
axis.lab.angleto allow users to change the angle of the axis labels on the x-axis.Allow
pre.postto be applied to anoutcomeplot.Change the color scheme in the
outcomeplot.Fix bugs.
panelView 1.1.10
Add
by.group.sideto arrange subfigures ofby.group = TRUEin a row rather than in a column.Add
display.allto 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.gapto 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.postto distinguish pre- and post-treatment observations for treated units in a DID setting. - Replace options
by.treatmentwithby.timingandtreatmentwithignore.treatfor easier interpretations. - Add fontsize options.