MY GUESS is that genlev 5 10 centre and genlev 4 10 strata would mean
generate (randomly) 5 centres in blocks and four strata in blocks with each
block containing 10 people. The four strata are Males 50-69 years, Males
70+ Females 50-69 and females 70+. Within each stratum there are equal
number of treatments (i.e 1 & 2) I do not know who wrote the program. I only
inherited it when I got my present job as it was on the computer that was
assigned to me.
What I need is a randomly generated list fitting the brief description above
but I do not know how to do produce it through writing a program like the
one I inherited thus the reason for posting the question on statlist.
Winston
-----Original Message-----
From: Nick Cox [mailto:[email protected]]
Sent: 30 October 2003 11:38
To: [email protected]
Subject: Re: st: Programming question
Winston Banya wrote
I posted this question yesterday and was advised by Nick but am still
not
able to solve it. I need to generate a randomisation list for a small
clinical trial. The trial will be in 5 centres and I want 4 strata of
people
at each centre. There are 2 treatments and 2 doses. As I stated
yesterday I
used the programme before and it worked well but I am unable to
understand
now why it is not working. I am attaching the program again and the
output I
obtained the last time I used it. What has prompted this is that the
person
doing the study has obtained approval to recruit more patients and we
need
an additional list. I will be very grateful if you can look at this
program
and offer any advice that can help me solve the problem as a patient
is
waiting to be randomised.
I inherited the program and the only change/addition I made was to the
number of patients needed.
< snip>
>>> To repeat and expand on comments already made:
1. Please do not send attachments to Statalist. This is
an explicit request in the Statalist FAQ, and justified therein.
2. Please do not use MIME encoding in sending to Statalist.
Same applies.
3. Your problem is that your .do file uses a -genlev- command
which is not part of official Stata, was not published in
the STB or the SJ, and is not available from SSC or other
prominent Stata websites. Or at least
I cannot find -genlev- using either -search- or its superset
-findit-.
Your options include the following:
* Perhaps -genlev- is lurking somewhere on your machine
or your system, just not visible to the Stata you are
running. Get your OS to look for it. If you find it,
copy it to somewhere along your -adopath-. You are
looking for a file called genlev.ado.
* It sounds as if -genlev- was written by some present
or past colleague. Ask the local Stata expert where it came
from. If you are the local expert, ask a bigger less local
Stata expert. Or here we are on Statalist, so does anyone
have a -genlev- on their system, i.e. does
. which genlev
find a file?
* Tell us exactly what -genlev- does, and it's probably
easy then to write a substitute. Personally I can't
reconstruct what -genlev- does from the syntax used
to call it.
Nick
[email protected]
*
* 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/