Displaying 1 result from an estimated 1 matches for "mcstoc".
Did you mean:
csdoc
2012 Mar 10
1
Draw values from multiple data sets as inputs to a Monte-Carlo function; then apply across entire matrix
...;)
Psd <- read.table("D:/Data/PoultryStDev.txt")
Wde <- read.table("D:/Data/WildBirdDensity.txt")
The Model:
In the Monte-Carlo simulation, Poultry and Wild birds have different
distributions (normal and triangle, respectively).
Below are the 2 lines of code that use the mcstoc function to draw the
samples.
The values in bold are ones that I would like to draw from the data tables
I read in above.
For example, 3.5 would be cell (i,j) in the Poultry MEAN density table;
0.108 would be cell (i,j) in the Poultry STDEV table; and 47 the single
estimate for cell (i,j) of t...