Navigation

Operators and Keywords

Function List:

C++ API

prop_test_2.m File Reference


Functions

 if (nargin==4) alt

Variables

 function [pval, z]
endif p1 = x1 / n1
 p2 = x2 / n2
 pc = (x1 + x2) / (n1 + n2)
 z = (p1 - p2) / sqrt (pc * (1 - pc) * (1/n1 + 1/n2))
 cdf = stdnormal_cdf (z)

Function Documentation

if ( nargin  = =4  ) 


Variable Documentation

cdf = stdnormal_cdf (z)

Initial value:

 prop_test_2 (x1, n1, x2, n2, alt)

  if ((nargin < 4) || (nargin > 5))
        print_usage ()

endif p1 = x1 / n1

p2 = x2 / n2

pc = (x1 + x2) / (n1 + n2)

z = (p1 - p2) / sqrt (pc * (1 - pc) * (1/n1 + 1/n2))