Randomly permute some some variables and run the OSA model on the permuted data
Source:R/run_OSA_permuted.R
run_OSA_permuted.RdRandomly permute some some variables and run the OSA model on the permuted data
Usage
run_OSA_permuted(
permutation_seeds = 1:100,
permuting_variables = "Gender",
patient_data,
...
)Arguments
- permutation_seeds
random number generator seeds to use to permute the data
- permuting_variables
which variables to permute
- patient_data
patient biomarker data
- ...
Arguments passed on to
run_OSAprob_scorearray probability of each score for all subjects across all biomarkers
dim = number of subjects x number of biomarkers x number of scores
score_valsa matrix specifying the scores for each biomarker
dim: number of biomarkers x number of scores
SuStaInLabelsthe names of the biomarkers as a list of strings
N_startpointsnumber of startpoints to use in maximum likelihood step of SuStaIn, typically 25
N_S_maxmaximum number of subtypes, should be 1 or more
N_iterations_MCMCnumber of MCMC iterations, typically 1e5 or 1e6 but can be lower for debugging
output_folderwhere to save pickle files, etc.
dataset_namefor naming pickle files
use_parallel_startpointsboolean for whether or not to parallelize the maximum likelihood loop
seedrandom number seed for python code
plotlogical()indicating whether to construct PVD plots via python subroutinesN_CV_foldsnumber of cross-validation folds to create
CV_fold_numswhich CV folds to run (for parallel processing)
verboselogical()indicating whether to print debugging informationkeep_datalogical()indicating whether to include the ata in the return objectfig_sizepython figure size, in inches (width, height)
prob_correctthe probability of correctly classifying the underlying biomarker level: p(obs = true)
biomarker_levelsa list containing the levels for each biomarker
Value
NULL, invisibly (.pickle and .rds files are generated to save the output)