Explain the definition of a variable in research methodology.