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
command kpss is unrecognisedHello I have trying to test for stationarity using Kwiatkowski–Phillips–Schmidt–Shin test. But the …
WHO Anthro Macro files error message in calculating anthropometric z scoresDear All, I tried using WHO Anthro files (from https://www.who.int/childgrowth/software/en/) with S…
how to deal with two datasetsHi! I have a dataset with information on applicants to all job vacancies in an organization, for ea…
Probit model explanationI have a dataset that contains information on applications to any job vacancy in an organization. I …
Extract values of TN, FP, TP and FN stataDear Stata exper, Wonder how to extract values of TN, FP, TP and FN into seperate variables in stata…
Subscribe to:
Post Comments (Atom)
0 Response to Sample size for count data
Post a Comment