Learn R Programming

JointNets (version 2.0.1)

simulation: simulate multiple sparse graphs and generate samples

Description

simulate multiple sparse graphs and generate samples

Usage

simulation(p = 20, n, seedNum = 37, s = 0.1, ss = 0.1)

Arguments

p

number of features (number of nodes)

n

a vector indicating number of samples and tasks, for example c(100,200,300) for 3 tasks and 100,200 and 300 samples for task 1, 2 and 3

seedNum

seed number for random simulation

s

positive number that controls sparsity of the generated graphs

ss

positive number that controls sparsity of the shared part of generated graphs

Value

a list comprising $simulatedgraphs (multiple related simulated graphs) and $simulatedsamples (samples generated from multiple related graphs)

Examples

Run this code
# NOT RUN {
library(JointNets)
simulateresult = simulation(p = 20,  n = c(100,100))
plot(simulateresult$simulatedgraphs)
# }

Run the code above in your browser using DataLab