|
||
|
Viewing By Month : June 2008 / Main
June 8, 2008Centered polynomial regression The standard polynomial models look like this: Y= B0 + B1*X +B2*X^2
Y= B0 + B1*XC +B2*XC^2
However, the centered model has reparameterized the equation. The parameters have different meanings, so have different best-fit values (except the last parameter which is the same), different standard errors and confidence intervals , smaller covariances and dependencies, and narrower confidence/prediction bands. Here is a Prism file that demonstrates centered polynomial fitting. Open it, go to one of the fits, change parameters and then then "edit" the equation without changing anything. This will place the equation into your user-defined equation list.
June 6, 2008Are outlier tests useful when data come from a distribution that is not Gaussian? No. Most outlier tests are based on the assumption that the data, except the potential outier(s), come from a Gaussian distribution. If the distribution is not Gaussian, outlier tests are misleading. Here is an example. Grubbs outlier test found an outlier in three of these four data sets.
But these data are not sampled from a Gaussian distribution with an outlier. Rather they are sampled from a lognormal distribution. Transform all the values to their logarithms, and the distribution becomes Gaussian:
The apparent outliers are gone. Grubb's test finds no ouliters. The extreme points only appeared to be outliers because extreme values are common in a lognormal distribution but rare in a Gaussian distribution. If you don’t realize the distribution was lognormal, an outlier test would be very misleading.
When analyzing data, sometimes you want to graph or analyze only a portion of the values, and remove any values that are higher (or lower) than some threshold. You can do this with a user-defined Prism transform. Here is a transform that removes any data with Y greater than 100: Y=IF(Y>100, 0/0, Y) That transforms any values greater than 100 to 0/0 which is undefined, so becomes blank in the results table. The other values get transformed to equal Y (no change). Here is a transform that removes any data with Y greater than 100 or less than 10. Y=IF(Y>100, 0/0, IF(Y<10, 0/0,Y)) This simply nests two IF functions in the transform. To enter a user defined tranform, go to a data table, click analyze, and choose Transform. At the top of the dialog, choose User-defined Y transforms. On the new dialog, click Add to create a new transform. Of course, you could create an X transform and use similar syntax to remove rows where X is too high or too low (or meets some other criterion).
June 4, 2008How to make the right and left Y axes look differentWhen you create a graph with two Y axes, Prism always creates them with the same length and the same color. To make the lengths appear different:
To give the axes different colors:
To give the axis numbering a different color or font:
To only have one axis but put in on the right side of the graph: The first axis created is called the 'left Y axis', but in fact it does not need to be placed on the left side of the graph. It can be anywhere. To put this axis on the right side of a graph:
To delete the right Y axis:
June 1, 2008Plotting t, z, F, or chi-square distributions with Prism. GraphPad Prism can generate probability distributions. This demonstrates Prism's ability to plot functions from user-defined functions, and also the use of hooking info constants to analyses.
In each case, the simulation generates two (or three) data sets. The first (A) data set plots the entire curve. The second (and third) data sets only plot values where X is greater than (less than) a specified cutoff value. This second (and third) data set are plotted with area fill to shade the tails of the distributions. Remove data set B or C from the graph if you only want to shade one tail. Change the numbers of degrees of freedom and the cutoff values (for shading) in the Info sheet. This demonstrates how values entered into an info sheet can be 'hooked' to constants used in analyses.
Graphing a Binomial or Poisson distribution with Prism. Prism can graph a Binomial or Poisson distribution. Download the file that generated this pair of graphs.
To modify this file, change the value of lamda (for Poission) or the probability, n, and cutoff (Binomial) in the Info sheet. Enter new values there, and the graph updates. This is a good example of the usefulness of hooking an info constant to an analysis. If you want to recreate graphs like these, keep in mind these points:
|
||