Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: Zcalc - with different sd in two groups


From   "Lachenbruch, Peter" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: Zcalc - with different sd in two groups
Date   Thu, 14 Jul 2011 08:39:31 -0700

Why not calculate it from the definition of the z-score?
For common sd you have
Z=(x1bar-x2bar)/s(sqrt(1/n1+1/n2))
For different sd you have
Z=(x1bar-x2bar/sqrt(s1^2/n1+s2^2/n2)
It's a one line program either way.

Tony

Peter A. Lachenbruch
Department of Public Health
Oregon State University
Corvallis, OR 97330
Phone: 541-737-3832
FAX: 541-737-4001

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Lars Folkestad
Sent: Thursday, July 14, 2011 4:47 AM
To: [email protected]
Subject: st: Zcalc - with different sd in two groups

Dear Stata list

I have two groups with two means and different standard deviations (SD), and the latter is the problem.
Using the zcalc program, se description below, i can calculate a z-score between the groups if the SD was the same in both groups.

How do i calculate the normal value (z-score) for a measurement method when the groups have different means?

Thank you
Lars

The zcalc option from findit:
---------------------------
Description
-----------

zcalc is a silly little program that computes z-scores.
        If you provide the arguements x mean sd, zcalc
        computes a z-score for observations.  If you
        provide the arguements mean mu sd n in the arguement
        list zclac computes a z-score for sample means.

---------------------------------

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index