us.simulate | R Documentation |
Ultrasound profile simulation based on a reference dataset.
us.simulate( reps = 1, x = mpm.us, y = NULL, signature = NULL, features = 2:15, header = NULL, ... )
reps |
Number of simulated vectors to be generated (default = 1). |
x |
Reference ultrasound features data.frame. By default, a
dataset of 948 simulated profiles (object |
y |
An optional numeric value defining the phenotype to be simulated: 0 for non-malignant and 1 for malignant (default = NULL). |
signature |
An optional string defining the metastatic risk signature to be simulated. One among: "LMR" (low metastatic risk), "MMR" (moderate metastatic risk), "HMR" (high metastatic risk), "MET" (metastatic signature). Defaults to NULL. |
features |
A vector of indices defining the ultasound features within the reference data.frame (default = 2:15). |
header |
A vector of new names for the ultrasound features vector. If NULL (default), feature names will be imported from the reference. |
... |
Currently ignored. |
A simulated ultrasound features vector.
Fernando Palluzzi fernando.palluzzi@gmail.com
See new.profile
for ultrasound
profile creation and us.predict
for
subject classification.
# Simulate a generic ultrasound profile u <- us.simulate() print(u) # Simulate a non-malignant ultrasound profile u0 <- us.simulate(y = 0) print(u0) # Simulate a malignant ultrasound profile u1 <- us.simulate(y = 1) print(u1) # Simulate a high metastatic risk profile (single metastasis event) u.hmr <- us.simulate(signature = "HMR") print(u.hmr) # Simulate a metastatic ultrasound profile (multiple metastasis events) u.met <- us.simulate(signature = "MET") print(u.met)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.