-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Hello,
I've observed two issues within the placebo_test function, both also present in the CRAN release:
-
Incorrect Condition in QOI Extraction:
- Location: Line extracting matched sets from the PanelMatch object.
- Code:
if (identical(qoi.in, "ate")) { matchedsets <- pm.obj[["att"]] }
- Expected Behavior: The condition should probably be
identical(qoi.in, "att"). With the current condition, objects with ATT as their QOI are unable to assignmatchedsets, leading to errors later in the function.
-
Mismatched Function Call:
- Location: Call to the
panel_estimatefunction. - Code:
placebo.results.raw <- panel_estimate(sets = pm.obj, data = data, number.iterations = number.iterations, df.adjustment = df.adjustment, placebo.test = TRUE, placebo.lead = lag.in)
- Issue: The function
panel_estimatedoesn't appear to exist in the library. Furthermore, the actualPanelEstimatefunction doesn't have the argumentsplacebo.testandplacebo.lead, eliminating it as a possible substitute.
- Location: Call to the
Would appreciate your review on this. Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels