Description Usage Arguments Details Value See Also Examples
A function to create a strumData object containing the simulated data according to the simulation model.
1 | simulateStrumData(simModel, inData=NULL, N=NULL)
|
simModel |
Object of class |
inData |
Object of class |
N |
A positive interger number to specify the particular size of simulated data or NULL. |
This function is used to simulate a data according to the specified simulation model. Note that either inData or N, or both must be specified.
Returns an object of class strumData
.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# Simulate a strumData object with different type of input data.
# - mySimModel is an object of strumSimModel class.
# - dF is a data.frame containing input data.
# - rawStrumData is an object of "RawData" type strumData class.
# - pedStrumData is an object of "Pedigree" type strumData class.
#-----------------------------------------------------------------
myStrumData = simulateStrumData(mySimModel, N=1000)
myStrumData = simulateStrumData(mySimModel, dF)
myStrumData = simulateStrumData(mySimModel, rawStrumData)
myStrumData = simulateStrumData(mySimModel, pedStrumData)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.