Bicop.to_file

Bicop.to_file(self, filename: str) None

Writes the copula object into a JSON or CBOR file.

Filenames ending in .cbor are written as CBOR. All other filenames are written as JSON for backwards compatibility. The written representation 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:
filenamestr

The name of the file to write.