getCoefficients
getCoefficients.Rd
Get the coefficients.
Arguments
- list_var
A list of variables (already initialized)
- l_dataFromMvrnorm
Data from the
getGeneMetadata
function (optional).- l_dataFromUser
Data from the
getDataFromUser
function (optional).- n_genes
The number of genes.
Examples
# Example usage
list_var <- init_variable()
#> Variable name should not contain digits, spaces, or special characters.
#> If any of these are present, they will be removed from the variable name.
input2mvrnorm = getInput2mvrnorm(list_var)
l_dataFromMvrnorm = getDataFromMvrnorm(list_var, input2mvrnorm, n_genes=3)
l_dataFromUser = getDataFromUser(list_var)
getCoefficients(list_var, l_dataFromMvrnorm, l_dataFromUser, n_genes = 3)
#> geneID label_myVariable myVariable
#> 1 gene1 myVariable1 0.08793127
#> 2 gene1 myVariable2 -0.29531591
#> 3 gene2 myVariable1 0.03313765
#> 4 gene2 myVariable2 0.21046609
#> 5 gene3 myVariable1 0.15365572
#> 6 gene3 myVariable2 -0.18987481