Hi listers,
I was asked to estimate the sample necessary to detect a difference in the average number of online counselling sessions between 2 groups so the outcome is a count and I plan to use Poisson regression to analyse the data and also estimate the sample size.
The -power twomeans- command does not seem appropriate here so I am wondering whether I can simulate the data in Stata. Can I use rnormal to simulate the data (I would need to truncate any negative value to be 0) or is there any way to create a Poisson distribution?
Any input is welcome!
Related Posts with Sample size for count data
How can I choose the time-varying technical efficiency models and inefficiency distribution?Dear STATA users, I am estimating the determinant factors of technical efficiency of teff farms (fo…
A seemingly bug with refcat (an option of estout), when using with tabstat ?Dear Statalist, I am using esttab and tabstat to produce descriptive statistics of 4 variables. I i…
Confidence Intervals for Pairwise Comparisons of Average Marginal EffectsHi, when using the following commands: asdoc regress lnincome i.race age age_squared i.region i.hig…
spmap: several observations per identifier; id() does not uniquely identify the observations;Hi, I am currently trying to plot a map with several observations for each district (polygon, I gue…
Keep font size fixed when switching displays?Stata (15.1 MP, Win 10 64) on my laptop has started changing font size wildly when switching between…
Subscribe to:
Post Comments (Atom)
0 Response to Sample size for count data
Post a Comment