klarsen1 / MarketMatching

Other
131 stars 37 forks source link

Issue with MarketMatching::inference method #25

Closed yuvanpradeep closed 2 years ago

yuvanpradeep commented 2 years ago

Hi Team, Can someone help me with this error or explain more when we face this error.

Error in stopif(length(post_period) == 0, TRUE, "ERROR: no valid data in the post period") : ERROR: no valid data in the post period Some( Error in stopif(length(post_period) == 0, TRUE, "ERROR: no valid data in the post period"): ERROR: no valid data in the post period )

Scenario: When I use the MarketMatching::inference method, getting this error

Currently, I am specifying matches=3, and one of the matches (market) returned by the MarketMatching::best_matches has 0 (zero) values for the columns that need to be matched (matching_variable).

Note: It doesn't have any null/nan values, and there is no gap in the pre and post-time period.

Thanks in Advance