make_diff_data | R Documentation |
This is an interface to the internal functions that process data for
fdm()
, asym()
, and asym_gee()
.
make_diff_data(
formula,
data,
id = NULL,
wave = NULL,
use.wave = FALSE,
min.waves = 1,
weights = NULL,
offset = NULL,
asym = FALSE,
cumulative = FALSE,
escape.names = FALSE,
...
)
formula |
Model formula. See details for crucial
info on |
data |
The data, either a |
id |
If |
wave |
If |
use.wave |
Should the wave be included as a predictor? Default is FALSE. |
min.waves |
What is the minimum number of waves an individual must
have participated in to be included in the analysis? Default is |
weights |
If using weights, either the name of the column in the data that contains the weights or a vector of the weights. |
offset |
this can be used to specify an a priori known
component to be included in the linear predictor during
fitting. This should be |
asym |
Return asymmetric effects transformed data? Default is FALSE. |
cumulative |
Return cumulative positive/negative differences, most useful for fixed effects estimation and/or generalized linear models? Default is FALSE. |
escape.names |
Return only syntactically valid variable names? Default is FALSE. |
... |
Ignored. |
data("WageData")
wages <- panel_data(WageData, id = id, wave = t)
make_diff_data(wks ~ lwage + union, data = wages)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.