This function uses repeated calls to var_main to find a fitting model for the data provided and then calls convert_to_graph to return a JSON representation of best valid model found.

generate_network(data, timestamp)

Arguments

data

a data frame of 17 columns (ontspanning, opgewektheid, hier_en_nu, concentratie, beweging, iets_betekenen, humor, buiten_zijn, eigenwaarde, levenslust, onrust, somberheid, lichamelijk_ongemak, tekortschieten, piekeren, eenzaamheid, uw_eigen_factor) and 90 rows

timestamp

the date of the first measurement in the format 'yyyy-mm-dd'

Value

This function returns a string representing a json array of two networks.