def __init__(self, name: str, cursor=None, p: int=1, tol: float=0.0001, max_iter: int=1000, solver: str='Newton'):
    check_types([('name', name, [str])])
    (self.type, self.name) = ('VAR', name)
    assert (p > 0), ParameterError("Parameter 'p' must be greater than 0 to build a VAR model.")
    self.set_params({'p': p, 'tol': tol, 'max_iter': max_iter, 'solver': solver})
    cursor = check_cursor(cursor)[0]
    self.cursor = cursor
    version(cursor=cursor, condition=[8, 0, 0])
def __init__(self, name: str, cursor=None, p: int=1, tol: float=0.0001, max_iter: int=1000, solver: str='Newton'):
    check_types([('name', name, [str])])
    (self.type, self.name) = ('VAR', name)
    assert (p > 0), ParameterError("Parameter 'p' must be greater than 0 to build a VAR model.")
    self.set_params({'p': p, 'tol': tol, 'max_iter': max_iter, 'solver': solver})
    cursor = check_cursor(cursor)[0]
    self.cursor = cursor
    version(cursor=cursor, condition=[8, 0, 0])