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

Re:st:problems with outliers

From   Nazaria Solferino <[email protected]>
To   [email protected]
Subject   Re:st:problems with outliers
Date   Thu, 8 Aug 2002 13:35:41 +0200 (CEST)

First, I'm trying to follow your suggestion about
using the command >if but I have 12 variables: do you
think I could use it the same?(sorry, if pheraphs my
question it's a bit silly: but isn't this method the
same as dropping observations? I mean Sytata
automatically won't take care of the observations
which hhavve variables outside the range?)

Second, I must realize a regression using a logit
model: what's the equivalent command as qreg I could
use in that case?

Third, I'd like to try also with the method of
transformation: could you give me some suggestion
about what transformstion should I perform?

thank you again to everybody for your support.

Hello! I'm a new Stata user and I'm not very good at
> using it yet. I hope some one can help with my
> problem. I've a large dataset, with some outliers,
> I'd like to manage variables, that I have, only in a
> restricted range(without dropping observations) I've
> thought I could give a zero value to all veriables
> outside a certain range so I mean I should generate
> newvar=oldvar then replace newvar=0 if outside the
> range. First, is this a sattistical correct

(Please use informative titles on Statalist messages.)

No. Stata will take the new values of 0 just as
as the old outlying values. 

One way to exclude outliers is by an -if- condition: 

regress y x1 x2 x3 if y < 10000 

Naturally, there are other approaches to your problem 

1. a robust technique. I've found -qreg- very good. 

2. transformation. 

3. -glm- with a nonlinear link (e.g. log). 

Scarica il nuovo Yahoo! Messenger: con webcam, nuove faccine e tante altre novit´┐Ż.
*   For searches and help try:

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