% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/timer.R
\name{GetFractions.Abbas}
\alias{GetFractions.Abbas}
\title{Constrained Regression Method (Abbas et al., 2009)}
\usage{
GetFractions.Abbas(XX, YY, w = NA)
}
\arguments{
\item{XX}{Matrix. Immune expression data with genes as rows and cell types
as columns.}

\item{YY}{Vector. Cancer expression data with gene expression levels.}

\item{w}{Vector or NA. Weights for regression. Default is NA (no weights).}
}
\value{
Vector with non-negative coefficients representing proportions of
  each cell type.
}
\description{
Implements a constrained regression approach described by Abbas et al. (2009).
Estimates proportions of immune cell types within mixed cancer tissue samples
based on gene expression data. Iteratively adjusts regression coefficients
to ensure non-negative values.
}
\examples{
XX <- matrix(runif(100), nrow = 10, ncol = 10)
colnames(XX) <- paste("CellType", 1:10, sep = "")
YY <- runif(10)
results <- GetFractions.Abbas(XX, YY)
print(results)
}
