Description Usage Arguments Details Value References Examples
Performs a ttest on a "NnDd"
object. The ttest is applied on only on the time span on which the NN are specified.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## S3 method for class 'NnDd'
ttest(x, ...)
nndd_ttest(ttest_data, indexes = c("year", "firm_id", "tg"), nn_time, ...)
## S3 method for class 'NnDd'
predict(object, prediction = c("Nn", "Dd"), newdata, ...)
predict_fun_glm(pformula, family = "binomial", data)
## S3 method for class 'NnDd'
print(x, digits = max(3, getOption("digits") - 3), ...)
## S3 method for class 'NnDd'
plot(x, data, ...)
|
x, object |
an object of class |
ttest_data |
a data.frame containing the data on which the ttest should be performed on. |
indexes |
a list containing the name of the time, group, treatment identifier, and the outcome variable #Fixme: last two not really necessary |
nn_time |
a list containing the start timing and end timing for the NN estimation. The GLM is estimated at the end timing. However, it contains all regressor variables lagged in the given interval (start , end). |
pformula |
a formula expression of the form |
prediction |
a list containing specifying which model should be applied for the prediction. If the list contains "Nn" the pscores of the GLM model are predicted. In the case of containing "Dd" the prediction of the linear difference in differences model is returned. Both predictions are returned if the list is specified as "Nn", "Dd". |
newdata |
a data.frame containing the data on which the prediction should be based on. |
family |
family of the GLM. #Fixme: not implemented in NnDd, but in predict.NnDd |
digits |
see |
data |
a data frame containing the variables occurring in the formulas such as time and group identifiers. The data has to be a panel. |
... |
space for objects to be passed on |
...
...
...
1 2 | x <- "Fix: me"
print(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.