1 / 8

Cell#1 Program Instructions. Don’t run.

Cell#1 Program Instructions. Don’t run. Cell#2. Used to load a Statistical Package. Cell #3. Defines standard normal pdf and cdf functions. Ignore spelling warning. Cell #4

Download Presentation

Cell#1 Program Instructions. Don’t run.

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Cell#1 Program Instructions. Don’t run. Cell#2 Used to load a Statistical Package Cell #3 Defines standard normal pdf and cdf functions Ignore spelling warning

  2. Cell #4 Clears existing values of variables that may have been used in other programs. Then defines a function that is proportional to the pdf of Z and depends on μ1, f ( z, u ) where μ1 is defined by the variable u.

  3. Cell #5 Defines actual values from relevant clinical data and parameters of interest. σ is set by s. Cell#6 Defines the initial values for the endpoints of the integral, a & b.

  4. Cell #7 Creates a plot of the distribution of Z on [a, b]. If the plot indicates that the interval is not wide enough, values of a & b need to be manually set (trial and error) so that most of the distribution is captured before proceeding with additional Cells.

  5. Cell#8 Defines a range of values for μ1 likely to contain the confidence interval of interest. Cell #9 Establishes the total number of points to determine the values of FQ( Zobs | X*, μ1 ) as a function of μ1. utb is a tabulation of values for μ1 at which FQ( Zobs | X*, μ1 ) is calculated.

  6. Cell #10 c1 is a tabulation of the reciprocal of normalization constants, which depend on the values of μ1. Cell #11 a1 is a tabulation by u of the area under the curve of f ( t , u ) for fixed u and over t on [– Infinity, Zobs ]. For practical purposes, the lower limit of the integral is specified as (nA+nB)u – (b – a). Cell #12 p1 provides a tabulation of FQ( Zobs | X*, μ1 ) by μ1.

  7. Cell #13 This cell associates each value of FQ( Zobs | X*, μ1 ) with the corresponding value of μ1. Cell #14 An interpolating function is then set to the values listed in tb. Cell #15 A plot of the interpolating function is produced. The plot should show a reverse ‘S’ curve decreasing from near 1 to near 0. If this plot is not obtained, values of ‘upper’ and ‘lower’ (Cell 8) need to be set by the user by trial and error until the desired curve is obtained.

  8. Cell #16 The lower bound of the confidence interval is solved by finding μ1 such that FQ( Zobs | X*, μ1 ) = 1 – α / 2. In the example provided, it is – 0.7746. Cell #17 The upper bound of the confidence interval is solved by finding μ1 such that FQ( Zobs | X*, μ1 ) = α / 2. In the example provided, it is – 2.5644.

More Related