Set a parameter
Source:R/AllGenerics.R
, R/BASiCSParams-methods.R
, R/KersplatParams-methods.R
, and 8 more
setParam.Rd
Function for setting parameter values.
Usage
setParam(object, name, value)
# S4 method for class 'BASiCSParams'
setParam(object, name, value)
# S4 method for class 'KersplatParams'
setParam(object, name, value)
# S4 method for class 'Lun2Params'
setParam(object, name, value)
# S4 method for class 'LunParams'
setParam(object, name, value)
# S4 method for class 'Params'
setParam(object, name, value)
# S4 method for class 'PhenoParams'
setParam(object, name, value)
# S4 method for class 'SCDDParams'
setParam(object, name, value)
# S4 method for class 'SplatParams'
setParam(object, name, value)
# S4 method for class 'SplatPopParams'
setParam(object, name, value)
# S4 method for class 'ZINBParams'
setParam(object, name, value)
Examples
params <- newSimpleParams()
setParam(params, "nGenes", 100)
#> A Params object of class SimpleParams
#> Parameters can be (estimable) or [not estimable], 'Default' or 'NOT DEFAULT'
#> Secondary parameters are usually set during simulation
#>
#> Global:
#> (GENES) (Cells) [SEED]
#> 100 100 548703
#>
#> 3 additional parameters
#>
#> Mean:
#> (Rate) (Shape)
#> 0.3 0.4
#>
#> Counts:
#> [Dispersion]
#> 0.1
#>