ttest.NnDd: ttest

Description Usage Arguments Details Value References Examples

View source: R/NnDd.R

Description

Performs a ttest on a "NnDd" object. The ttest is applied on only on the time span on which the NN are specified.

Usage

 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, ...)

Arguments

x, object

an object of class "NnDd"

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 tg | outcome ~ x | z where tg is the response and z regressor variable of the GLM. outcome is the response and x the regressor variable of the DD model.

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 print

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

Details

...

Value

...

References

...

Examples

1
2
x <- "Fix: me"
print(x)

NnDd documentation built on May 2, 2019, 6:49 p.m.

Related to ttest.NnDd in NnDd...