Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 3be46f8
  • /
  • GuidedSparseKmeans.R2out.Rd
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:35d60da346886cfa82f92636e8e3d6d395663cb8
directory badge Iframe embedding
swh:1:dir:3be46f8173eab59483fef59edceaf2997f86a0d9
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
GuidedSparseKmeans.R2out.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GuidedSparseKmeans.R2out.R
\name{GuidedSparseKmeans.R2out}
\alias{GuidedSparseKmeans.R2out}
\title{GuidedSparseKmeans.R2out}
\usage{
GuidedSparseKmeans.R2out(x, R2.per, K, s, lam, nstart = nstart,
  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{K}{Number of clusters.}

\item{s}{The boundary of l1n weights, a vector.}

\item{lam}{The intensity of guidance.}

\item{nstart}{Specify the number of starting point for K-means.}

\item{maxiter}{Maximum number of iteration.}

\item{silence}{Output progress or not.}
}
\value{
m lists, m is the length of parameter s. Each list is consisting of
\item{weights}{weight for each feature, zero weight means the feature is not selected.}
\item{clusters}{cluster results.}
\item{object}{objective value.}
\item{bound}{a boundary of l1n weights}
}
\description{
Guided Sparse K-means (R-square or pseudo R-square is from the outside)
}
\details{
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
}

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top