diff --git a/.vscode/settings.json b/.vscode/settings.json index 5fbc413..6e379b8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,4 @@ { - "python.pythonPath": "/Users/morteza/miniconda3/bin/python", + "python.pythonPath": "/Users/morteza/miniconda3/envs/py3/bin/python", "python.condaPath": "~/miniconda3/bin/conda" } \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 5fbc413..6e379b8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,4 @@ { - "python.pythonPath": "/Users/morteza/miniconda3/bin/python", + "python.pythonPath": "/Users/morteza/miniconda3/envs/py3/bin/python", "python.condaPath": "~/miniconda3/bin/conda" } \ No newline at end of file diff --git a/bambi_playground.py b/bambi_playground.py new file mode 100644 index 0000000..3c6161f --- /dev/null +++ b/bambi_playground.py @@ -0,0 +1,14 @@ + +#%% + + +from bambi import Model +import pandas as pd +# from bambi import Model + +data = pd.DataFrame({'a':[1,9,8,12,2,3], 'b': [8,1,1,3,1,1], 'c': [3,4,1,9,1,11]}) + +model = Model('a ~ b * c', data) +model.fit() + +model.graph() \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 5fbc413..6e379b8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,4 @@ { - "python.pythonPath": "/Users/morteza/miniconda3/bin/python", + "python.pythonPath": "/Users/morteza/miniconda3/envs/py3/bin/python", "python.condaPath": "~/miniconda3/bin/conda" } \ No newline at end of file diff --git a/bambi_playground.py b/bambi_playground.py new file mode 100644 index 0000000..3c6161f --- /dev/null +++ b/bambi_playground.py @@ -0,0 +1,14 @@ + +#%% + + +from bambi import Model +import pandas as pd +# from bambi import Model + +data = pd.DataFrame({'a':[1,9,8,12,2,3], 'b': [8,1,1,3,1,1], 'c': [3,4,1,9,1,11]}) + +model = Model('a ~ b * c', data) +model.fit() + +model.graph() \ No newline at end of file diff --git a/bambi_playground_diagram.png b/bambi_playground_diagram.png new file mode 100644 index 0000000..cf393d0 --- /dev/null +++ b/bambi_playground_diagram.png Binary files differ