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

how to write n X p value of o_var or d_var #35

Open
seamman opened this issue Mar 13, 2023 · 0 comments
Open

how to write n X p value of o_var or d_var #35

seamman opened this issue Mar 13, 2023 · 0 comments

Comments

@seamman
Copy link

seamman commented Mar 13, 2023

i always have problem of using gravity model when i want to calculate n x p value of o_var or d_var
code like:
o_cap = np.array(df[['Oi_1','Oi_2']])
d_cap = np.array(df[['Dj_1','Dj_2']])
or
o_cap = np.array(df[['Oi_1','Oi_2']]).T
d_cap = np.array(df[['Dj_1','Dj_2']]).T
model = Gravity(flows,o_cap,d_cap,cost,'exp')

and then ,the model break down! i have tried many other ways, but it seems that none of those samples work. is there a sample way to adjust the code?

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

1 participant