Skip to content

Conversation

@ddsou
Copy link

@ddsou ddsou commented Apr 2, 2025

Basically to run something simple like
data = np.stack([x0, x1, x2], axis=1).reshape(1, -1, 3)
model = VAR(3)
model = model.fit(data)
conn = Connectivity(model.coef, nfft=10)
conn_matrix = conn.PDC()

I had to change an sp depreciation and adjust _construct_var_eqns to give me a proper 3x3 matrix at the end

Very possible I've used it wrong but thought I'd post this anyways :)

- changed sp to np
- changed indexes/ matrices for _constructu_var_eqns
@cbrnr
Copy link
Contributor

cbrnr commented Apr 8, 2025

Thank you, I'll take a look soon!

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

Successfully merging this pull request may close these issues.

2 participants