View source: R/did_loglinear.R
did_loglinear | R Documentation |
Compute the DiD Estimator with a loglinear model.
did_loglinear(
data,
formula,
exposure.name,
confound.names,
names_to = "var",
timevar = "time"
)
didloglinear(
data,
formula,
exposure.name,
confound.names,
names_to = "var",
timevar = "time"
)
data |
Dataframe of raw data. |
formula |
Formula representing the model. |
exposure.name |
Name of exposure variable. |
confound.names |
Names of the confound variables. |
names_to |
Name that will be used for the name variable. |
timevar |
Name that will be used for the time variable. |
the DiD Estimator using the scripts from section 7.2, p. 141-142.
Dataframe in a useable format for rsample::bootstraps
.
Section 7.1.2
did_longer
# An example can be found in the location identified in the
# source section above at the github site
# https://github.com/FrankLef/FundamentalsCausalInference.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.