% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/download_data_factors.R
\name{download_data_factors_q}
\alias{download_data_factors_q}
\title{Download and Process Global Q Factor Data}
\usage{
download_data_factors_q(
  dataset = NULL,
  start_date = NULL,
  end_date = NULL,
  type = deprecated(),
  url = "https://global-q.org/uploads/1/2/2/6/122679606/"
)
}
\arguments{
\item{dataset}{The name of the dataset to download (e.g.,
"q5_factors_daily_2023.csv", "q5_factors_monthly_2023.csv").}

\item{start_date}{Optional. A character string or Date object in
"YYYY-MM-DD" format specifying the start date for the data. If
not provided, the full dataset is returned.}

\item{end_date}{Optional. A character string or Date object in
"YYYY-MM-DD" format specifying the end date for the data. If not
provided, the full dataset is returned.}

\item{type}{\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}} Use \code{dataset}
instead.}

\item{url}{The base URL from which to download the dataset files.}
}
\value{
A tibble with processed factor data, including the date,
risk-free rate, market excess return, and other factors,
filtered by the specified date range.
}
\description{
Downloads and processes Global Q factor data based on the
specified dataset, date range, and source URL. The processing
includes date conversion, renaming variables to a standardized
format, scaling factor values, and filtering by the specified
date range.
}
\examples{
\donttest{
download_data_factors_q("q5_factors_daily_2024", "2020-01-01", "2020-12-31")
download_data_factors_q("q5_factors_annual_2024")
}
}
\references{
Hou, K., Xue, C., & Zhang, L. (2015). Digesting anomalies: An investment
approach. \emph{Review of Financial Studies}, 28(3), 650-705.
\doi{10.1093/rfs/hhu068}

Hou, K., Mo, H., Xue, C., & Zhang, L. (2019). Which factors?
\emph{Review of Finance}, 23(1), 1-35.
\doi{10.1093/rof/rfy032}
}
\seealso{
Other download functions: 
\code{\link{download_data}()},
\code{\link{download_data_constituents}()},
\code{\link{download_data_factors_ff}()},
\code{\link{download_data_fred}()},
\code{\link{download_data_huggingface}()},
\code{\link{download_data_macro_predictors}()},
\code{\link{download_data_osap}()},
\code{\link{download_data_risk_free}()},
\code{\link{download_data_stock_prices}()}
}
\concept{download functions}
