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
color macros for graphsI'm trying to setup macros to use across a set of graphs for cmyk colors. I've tried local mygray :…
Help Translating Factor Analysis Script from SPSS to Stata SyntaxHi all, I have been tasked with applying a factor analysis to a large data set in Stata. The purpos…
Looping of a specific type of a variable listHey Stata users! I am trying to loop over a list of integer variables to replace missing values. I …
Removing a single character from a stringHello, I am interested in removing the third character from a variable that looks like this: id 011…
Create an indicator of participation in long formatDear Statalisters, I have a dataset in long format, measuring spirometry data on three occasions. I…
Subscribe to:
Post Comments (Atom)
0 Response to Sample size for count data
Post a Comment