Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: To generate a correlated Poisson sample


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: To generate a correlated Poisson sample
Date   Tue, 15 Feb 2005 21:34:14 -0000

. findit copula

just finds 

SJ-2-2  st0010  . . . . . . . . . . . . . . . . . . . . .  Power by simulation
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . A. H. Feiveson
        Q2/02   SJ 2(2):107--124                                 (no commands)
        describes how to perform power and sample size estimation
        using simulation in Stata

Nick 
n.j.cox@durham.ac.uk 

Al Feiveson 
 
> Tony  - One way is the copula technique. Basically, you can 
> do this by first
> generating dependent normal variates, then transforming them 
> to dependent
> uniforms (via the marginal normal CDFs) and then to Poissons. 
> There have
> been a number of queries about dependent normals and I 
> suspect there is a
> FAQ on the topic.
 
Tony YANG
 
> How can I generate a correlated Poisson sample in Stata? And the data
> structure is like the following:
> 
> Obs time1 time2 time3 time4
> 1          2         4        5        2 
> 2          1         3        5        6
> 3          2         3        1        5
> 4          0         6        4        1
> ...

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index