Bicop.to_json

Bicop.to_json(self: pyvinecopulib.Bicop, filename: str) None

Write the copula object into a JSON file.

The written file contains four attributes: "fam", "rot", "par", "vt", "nobs", "ll", "npars" respectively a string for the family name, an integer for the rotation, and a numeric matrix for the parameters, a list of two strings for the variable types, an integer for the number of observations (if fitted), a double for the log-likelihood (if fitted), and a double for the number of parameters (can be non-integer in nonparametric models).

Parameters:

filename – The name of the file to write.