|
Script example 2. Monte Carlo analysis |
|
|
Script example 2. Monte Carlo analysis This is an example of Monte Carlo analysis. We'll simulate 500 data sets with random variation and fit a dose-response curve to each. This script creates a table containing the logEC50 and HillSlope from all 500 fits. Before running this script, you must create a file that has the first data table formatted for a one-grouping variable data set (no X, No Y subcolumns). The first results sheet must be one that simulates data with error. The second results sheet must be a nonlinear regression that fits a dose-response curve to the data.
When the script is done, table 1 will have two columns and 500 rows. Each row will have the logEC50 and Hill Slope from one of the simulated experiments. |