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

Re: st: Reading the letters in a name up to a particularcharacter in Stata 8.2


From   "Dev Vencappa" <lexdvv@nottingham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Reading the letters in a name up to a particularcharacter in Stata 8.2
Date   Mon, 13 Jun 2005 12:54:33 +0100

>
Dear all,
 apologies if this has been posted  before and I missed it. I have a string variable which is the name of companies (fictitious example follows):

XYZ, International
ABCDE, National
DFTRER, Exports

etc

I want  to keep only the first part of the company name (e.g. keep XYZ ABCDE DFTRER, etc). The obvious solution is to ask Stata to read the letters and chop off anything from the character "," onwards, but am not very sure which command to use in Stata 8.2  to be able to do that. 

Any help is much appreciated.


Many thanks
Dev




>>> Colin.Vance@dlr.de 06/13/05 12:21 pm >>>
Greetings,

I have panel data and have estimated the following model with gllamm:

gllamm y x1 x2, i(persid) family(binom) link(probit) adapt trace

The level one units are measurement occasions and the level two units
are persons, indicated by the variable persid. I have two questions
concerning this model:

1. Why don't I get identical results when I estimated the same model
with xtprobit using
xtprobit y x1 x2, i(persid)

Using the example of the logit, the Gllamm manual (page 34) implies that
these commands are identical. I was able to confirm this with the logit,
but it doesn't seem to work with the probit.

2. The condition number generated by the gllamm model goes through the
roof when additional explanatory variables are added. The number is
about 30 with 2 explanatory variables and about 22000 with five, one of
which is a squared term. Is this a cause for concern?



Any insights would be greatly appreciated.

Many thanks,
Colin


Colin Vance, Ph.D.
German Aerospace Center
Institute of Transport Research
Rutherfordstrasse 2
12489 Berlin
Germany

tel: +49 30 67055147
fax: +49 30 67055202
email: colin.vance@dlr.de 

*
*   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/


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


*
*   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/



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