<>
" Currently I cannot update Stata."
We cannot help you there, but you should be able to run the code below even with Stata 10.0, or earlier. I simply swapped -runiform()- and -uniform()-, see -help whatsnew- for "update 11aug2008"...
*******
clear*
vers 9.2
set obs 1000
forv i=1/165{
gen var`i'=irecode(uniform(), 0, .2, .9, 1)
}
contract var*
su _freq, d
*******
HTH
Martin
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Karen Wright
Sent: Mittwoch, 6. Januar 2010 11:25
To: [email protected]
Subject: Re: st: AW: problem with -contract-
Thank you the help is much appreciated but unfortunately I have to delay
slightly as I am trying to obtain admin rights for my desktop from IT!!!
Currently I cannot update Stata.
As you point out Stata should be able to handle the amount of variables
I am talking about but I am assuming that -contract- must generate extra
variables in calculating the frequencies?
I shall run the example code you have given me when I am able to update
Stata and email you then if that would be alright? Apologies, I do not
know how long this may take.
Thank you,
Karen
>>> "Martin Weiss" <[email protected]> 05/01/2010 17:52 >>>
<>
-h limits- (in Stata 10) does indicate that IC can handle 2,047
variables,
though. What happens when you run this example code?
*************
clear*
vers 10.1
set obs 1000
forv i=1/165{
gen var`i'=irecode(runiform(), 0, .2, .9, 1)
}
contract var*
su _freq, d
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Karen
Wright
Gesendet: Dienstag, 5. Januar 2010 18:32
An: [email protected]
Betreff: st: problem with -contract-
I was wondering if anyone could help with a problem i am having using
-contract-. I wish to use contract on about 165 variables at the same
time,
this would create a dataset containing 166 variables if contract
worked.
however Stata (of which I am using version 10, IC) cannot do this due
to
too many variables. Is there another way to create the frequencies I
require or to alter -contract- in some way to allow this many
variables?
Thank you,
Karen
The Institute of Cancer Research: Royal Cancer Hospital, a charitable
Company Limited by Guarantee, Registered in England under Company No.
534147
with its Registered Office at 123 Old Brompton Road, London SW7 3RP.
This e-mail message is confidential and for use by the addressee only.
If
the message is received by anyone other than the addressee, please
return
the message to the sender by replying to it and then delete the message
from
your computer and network.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
The Institute of Cancer Research: Royal Cancer Hospital, a charitable Company Limited by Guarantee, Registered in England under Company No. 534147 with its Registered Office at 123 Old Brompton Road, London SW7 3RP.
This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer and network.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/