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

Raw File Download
Permalink

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
content badge Iframe embedding
swh:1:cnt:fcb9ed71a5ca4cbb5442cccaffd8dfa145f3873f
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
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/GuidedSparseKmeans.S.R
\name{GuidedSparseKmeans.S}
\alias{GuidedSparseKmeans.S}
\title{GuidedSparseKmeans.S}
\usage{
GuidedSparseKmeans.S(x, z, K, s, lam, model, nstart = 20, maxiter = 15,
  nperms = 50, silence = F)
}
\arguments{
\item{x}{Gene expression matrix, n*p (rows for subjects and columns for genes).}

\item{z}{One phenotypic variable from clinical dataset, a vector.}

\item{K}{Number of clusters.}

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

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

\item{model}{The model fitted to obtain R2, please select model from 'linear', 'logit', 'exp', 'polr','cox'.}

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

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

\item{nperms}{Number of permutation times}

\item{silence}{Output progress or not.}
}
\value{
A list consisting of
\item{nnonzerows}{number of nonzero weights.}
\item{gaps}{gap statistics.}
\item{segaps}{statard error of gap statistics.}
\item{s}{candidates of s.}
\item{s.best}{the best s with largest gap.}
}
\description{
Selection of Tuning Parameter s in Guided Sparse K-means
}
\details{
Select tuning parameter s via permutation in Guided Sparse K-means integrating clinical dataset with gene expression dataset.
}
\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