% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GuidedSparseKmeans.KLam.R2out.R \name{GuidedSparseKmeans.KLam.R2out} \alias{GuidedSparseKmeans.KLam.R2out} \title{GuidedSparseKmeans.KLam.R2out} \usage{ GuidedSparseKmeans.KLam.R2out(x, R2.per, pre.K = NULL, s.one, nstart = 20, maxiter = 15, silence = F) } \arguments{ \item{x}{Gene expression matrix, n*p (rows for subjects and columns for genes).} \item{R2.per}{R-squared or pseudo R-squared between phenotypic variable and expression value of each gene, a vector.} \item{pre.K}{Pre-knowledge of the number of clusters.} \item{s.one}{A proper value of the boundary of l1n weights.} \item{nstart}{Specify the number of starting point for K-means.} \item{maxiter}{Maximum number of iteration.} \item{silence}{Output progress or not.} } \value{ A list consisting of \item{K.select}{value of selected K.} \item{lam.select}{value of selected lam.} \item{ARI.Cs}{Adjusted ARI values for cluster results.} \item{Jaccard.gene}{Jaccard index values for gene selection results.} } \description{ Selection of Tuning Parameter K and lam in Guided Sparse K-means (R-square or pseudo R-square is from the outside) } \details{ Select tuning parameter K using gap statistics and tuning parameter lam using sensitivity analysis in Guided Sparse K-means integrating clinical dataset with gene expression dataset, R-square or pseudo R-square is from the outside, not calculated in the function. } \author{ Lingsong Meng }