generate_network: Return a JSON array of network data of a fitting model...

View source: R/generate_networks.r

generate_networkR Documentation

Return a JSON array of network data of a fitting model specific to hoegekis.nl

Description

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.

Usage

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.


roqua/autovar documentation built on Jan. 21, 2023, 7:37 p.m.