|
Using a script to simulate many data sets |
|
|
Why simulate? When testing analysis methods and experimental designs, it can be useful to simulate and analyze a large number of data sets. This can give you a sense of how precisely you can determine the parameter values, and whether the distribution of parameters is symmetrical. Prism makes this easy. How to: Running a Prism script This example should help you get started.
Table Prism 1 Clear Foreach 100 Goto R 1 Regenerate Goto R 2 WTable "logEC50",5,1 Next
Understanding the script The first line of the script specifies which data table will hold the results. Then the script loops 100 times. With each loop, it goes to the first results page (with the simulation) and regenerates with new random scatter. It then goes to the second results page (with curve fit results) and writes the value in the fifth row of the first column into the data table, and labels that column "logEC50". you will want to adjust the row number, and perhaps add additional lines to output additional results. You may also want to loop more than 100 times.
|