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

swh:1:snp:596f415c713fa00ee0a4e85e0356e0508a5b521e
  • Code
  • Branches (0)
  • Releases (5)
    • Branches
    • Releases
      • 5
      • 5
      • 4
      • 3
      • 2
      • 1
    • b5db932
    • /
    • AnniceNajafi-RMCDA-a9d304b
    • /
    • man
    • /
    • apply.SBWM.Rd
    Raw File Download

    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
    • snapshot
    • release
    content badge
    swh:1:cnt:9ded86f104096658dd7ba4eb1db14d6b1248468d
    directory badge
    swh:1:dir:47ed3a57e41a5b6f44dca61047374ff981d1655e
    snapshot badge
    swh:1:snp:596f415c713fa00ee0a4e85e0356e0508a5b521e
    release badge
    swh:1:rel:e67b0382819676943c56b35804ed5bb9a50c91a3

    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
    • snapshot
    • release
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    (requires biblatex-software package)
    Generating citation ...
    apply.SBWM.Rd
    % Generated by roxygen2: do not edit by hand
    % Please edit documentation in R/MCDA_methods.R
    \name{apply.SBWM}
    \alias{apply.SBWM}
    \title{Function for applying the Stratified Best-Worst Method (SBWM)}
    \usage{
    apply.SBWM(
      comparison.mat,
      others.to.worst,
      others.to.best,
      state.worst.lst,
      state.best.lst,
      likelihood.vector
    )
    }
    \arguments{
    \item{comparison.mat}{the comparison matrix containing the alternatives as column names
    and the criteria as row names.}
    
    \item{others.to.worst}{the comparison of the criteria to the worst criteria for each state,
    column names should be states and the row names are criteria}
    
    \item{others.to.best}{the comparison of the criteria to the best criteria for each state,
    column names should be states and the row names are criteria}
    
    \item{state.worst.lst}{the vector containing the name of the worst criteria in each state}
    
    \item{state.best.lst}{the vector containing the name of the best criteria in each state}
    
    \item{likelihood.vector}{the vector containing the likelihood of being in each state.}
    }
    \value{
    the result of SBWM
    }
    \description{
    Function for applying the Stratified Best-Worst Method (SBWM)
    }
    \examples{
    data <- read.csv(system.file("extdata", "stratified_BWM_case_study_I_example.csv", package = "RMCDA"), header = FALSE)
    mat.lst <- read.csv.SBWM.matrices(data)
    comparison.mat <- mat.lst[[1]]
    others.to.worst <- mat.lst[[2]]
    others.to.best <- mat.lst[[3]]
    state.worst.lst <- mat.lst[[4]]
    state.best.lst <- mat.lst[[5]]
    likelihood.vector <- mat.lst[[6]]
    apply.SBWM(comparison.mat, others.to.worst, others.to.best, state.worst.lst, state.best.lst, likelihood.vector)
    }
    

    back to top

    Software Heritage — Copyright (C) 2015–2026, 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— Content policy— Contact— JavaScript license information— Web API