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

RE: st: Programming question

From   "Banya, Winston" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   RE: st: Programming question
Date   Thu, 30 Oct 2003 13:17:17 -0000

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.


-----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
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
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
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
doing the study has obtained approval to recruit more patients and we
an additional list. I will be very grateful if you can look at this
and offer any advice that can help me solve the problem as a patient
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

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.

[email protected]

*   For searches and help try:
*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index