@procDecorator.proc_decorator({})<EOL><INDENT>def factor(self, data: ['<STR_LIT>', str] = None,<EOL>by: str = None,<EOL>cls: [str, list] = None,<EOL>freq: str = None,<EOL>paired: str = None,<EOL>var: str = None,<EOL>weight: str = None,<EOL>procopts: str = None,<EOL>stmtpassthrough: str = None,<EOL>**kwargs: dict) -> '<STR_LIT>':<DEDENT>
Python method to call the FACTOR procedure

Documentation link:
https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=statug&docsetTarget=statug_factor_syntax.htm&locale=en

:param data: SASdata object or string. This parameter is required.
:parm by: The by variable can only be a string type.
:parm cls: The cls variable can be a string or list type. It refers to the categorical, or nominal variables.
:parm freq: The freq variable can only be a string type.
:parm paired: The paired variable can only be a string type.
:parm var: The var variable can only be a string type.
:parm weight: The weight variable can only be a string type.
:parm procopts: The procopts variable is a generic option available for advanced use. It can only be a string type.
:parm stmtpassthrough: The stmtpassthrough variable is a generic option available for advanced use. It can only be a string type.
:return: SAS Result Object