Displaying 1 result from an estimated 1 matches for "snowfallexample".
2014 Jan 28
0
Help for how to use "snowfall" package
...about how to use this package:
My code structure is as follows:
rm(list=ls())
set.seed(2014)
library(snowfall)
#############
#part 1:
generate the initial value for simulation
#part 2:
some functions will be used in the simulation
#simulation part, start from "while loop"
sink('SnowFallExample.Rout', split=TRUE)
.Platform
.Machine
R.version
Sys.info()
sfInit(parallel=TRUE,cpus=4,type="SOCK")
simu<-1
while(simu<=1000){
functions.....
}
Then I used the above structure with sflnit to do the simulation, I found that there is no change on the time for simulation, even...