Skip to content

Cannot reshape array #21

Open
Open
@hermelino

Description

I'm trying to run a synthetic control model with my data and I'm getting the error message below. Can someone help me, please?

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\SyntheticControlMethods\main.py", line 333, in init
original_checked_input = self._process_input_data(
File "C:\ProgramData\Anaconda3\lib\site-packages\SyntheticControlMethods\main.py", line 175, in _process_input_data
control_outcome_all, control_outcome, unscaled_control_covariates = self._process_control_data(
File "C:\ProgramData\Anaconda3\lib\site-packages\SyntheticControlMethods\main.py", line 243, in _process_control_data
control_outcome_all = np.array(control_data_all[outcome_var]).reshape(n_controls, periods_all).T #All outcomes
ValueError: cannot reshape array of size 773 into shape (43,18)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions