Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CausalImpact do not works at all #72

Open
NikitaLinberg opened this issue Feb 20, 2024 · 1 comment
Open

CausalImpact do not works at all #72

NikitaLinberg opened this issue Feb 20, 2024 · 1 comment

Comments

@NikitaLinberg
Copy link

I have pd.DataFrame with 5 columns. I need to see what happenes with one of it

pre_period=[0, 118] post_period=[119, 138] impact = CausalImpact(df_3_prognoz[['cnt_users']], pre_period, post_period, model_args={'nseasons': 7}) impact.run()
And i have this
`~\AppData\Local\anaconda3\lib\site-packages\causalimpact\analysis.py in _run_with_data(self, data, pre_period, post_period, model_args, alpha, estimation)
412 # Zoom in on data in modeling range
413 if data.shape[1] == 1: # no exogenous values provided
--> 414 raise ValueError("data contains no exogenous variables")
415 data_modeling = data.copy()
416

ValueError: data contains no exogenous variables`

But If I don't write "impact.run()", 'impact' gave me just <causalimpact.analysis.CausalImpact at 0x19d842355a0> without any data

@SeanRichterWalsh
Copy link

This does not look like valid R code. Are you using the R CausalImpact package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants