Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: loneway and intraclass correlation


From   "Jacki Buros" <[email protected]>
To   [email protected]
Subject   Re: st: loneway and intraclass correlation
Date   Tue, 26 Sep 2006 12:03:55 -0400

This should be 'reshape long num, i(id) string' rather than the
reshape command below.

Jacki

On 9/26/06, Jacki Buros <[email protected]> wrote:
I could be wrong, but I think loneway requires that the first variable
be the response and the second designate your group. So to compute ICC
of X and Y you would first want to reshape your data to be long, ie

instead of

  id    numX    numY
  1     25         32
  2     12         17

you would type 'reshape num, i(id) string' to get

  id   num    _j
  1    25      X
  1    32      Y
  2    12      X
  2    17      Y

Then 'loneway num numtype' should give you the ICC you are looking for.

Jacki


On 9/26/06, Joe Trubisz <[email protected]> wrote:
> In Martin Bland's book on medical statistics, he says:
>
> Sometimes we have pairs of observations where there is no obvious
> choice between X and Y. The choice of X and Y is arbitrary.
>
> He then goes on to discuss intraclass correlation.
>
> I have a set of data which meets this criteria and if I run 'loneway
> x y' and 'loneway y x', I get 2-different ICC values, which I can
> expect.
>
> However...what I don't know is what to do with the different values.
> Is one better than the other? How do I select which ICC value is
> actually the one I should be using?
>
> Thanks,
> Joe
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index