Hi Alex,
Apologies for the late response, unfortunately, I've just seen your reply. The posterior predictive simulator function works, it's only the hddm.utils.plot_posterior_quantiles() and hddm.plotting.plot_posterior_predictive() functions that I can't get to work. When I try to use them, I get the following output: '<Figure size 800x600 with 0 Axes>'.
Below is my code for running the neural regressions, any help would be much appreciated.
Thank you so much,
Kitti
-------------------------------
# import
import pandas as pd
import matplotlib.pyplot as plt
import hddm
import mpmath
import numpy as np
import scipy
import pickle
import seaborn as sns
import csv
pd.set_option('display.max_columns', None) # or 1000
pd.set_option('display.max_rows', None) # or 1000
pd.set_option('display.max_colwidth', None) # or 199
# load data
data = hddm.load_csv('/Users/kittib/Desktop/HDDM/FINAL MODELS/Data_HDDM_4origYs_n48.csv')
# using dictionary to convert specific columns
convert_dict1 = {'subj_idx':float,
'rt': float,
'response': float,
'earlyposY': float,
'earlynegY': float,
'lateposY': float,
'latenegY': float,
'pos_fdbk': float,
'neg_fdbk': float}
data = data.astype(convert_dict1)
print(data.dtypes)
print(data.head(10))
data1 = hddm.utils.flip_errors(data)
# Model 1: drift & boundary
m1 = hddm.HDDMRegressor(data1, ["a ~ earlyposY + earlynegY + lateposY + latenegY",
"v ~ earlyposY + earlynegY + lateposY + latenegY"],
include = ['a', 'v', 't', 'z', 'sv', 'st', 'sz'])
m1.find_starting_values()
m1.sample(10000, burn=5000, thin=5, dbname='traces.db', db='pickle')
hddm.utils.plot_posterior_quantiles(m1)
hddm.plotting.plot_posterior_predictive(m1)