Login or Register
Log in with
Forums
FAQ
Search in titles only
Search in General only
Advanced Search
Search
Home
Forums
Forums for Discussing Stata
General
You are not logged in. You can browse but not post. Login or
Register
by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the
FAQ
.
Announcement
Collapse
No announcement yet.
X
Collapse
Posts
Latest Activity
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Filtered by:
Clear All
new posts
Olive Bat
Join Date:
May 2018
Posts:
76
#1
Loop for Tobit
02 Mar 2020, 09:17
can some tell me how to write a loop for tobit...
Marcos Almeida
Join Date:
Apr 2014
Posts:
4047
#2
02 Mar 2020, 09:43
Which loop, I mean, what commands you wish to apply?
Best regards,
Marcos
Comment
Post
Cancel
Olive Bat
Join Date:
May 2018
Posts:
76
#3
02 Mar 2020, 09:48
foreach x of varlist a b c d e f d e f g h{
tobit `x' y,ll(0)
mfx compute,predict (e(0,.))
}
Comment
Post
Cancel
Olive Bat
Join Date:
May 2018
Posts:
76
#4
02 Mar 2020, 09:48
is this correct..
Comment
Post
Cancel
Marcos Almeida
Join Date:
Apr 2014
Posts:
4047
#5
02 Mar 2020, 12:04
To start, the legal command is - tobit y x - not the opposite
Best regards,
Marcos
Comment
Post
Cancel
Olive Bat
Join Date:
May 2018
Posts:
76
#6
02 Mar 2020, 21:12
i want t o write a tobit regression and thus wanna form a loop.. using foreach
Comment
Post
Cancel
Olive Bat
Join Date:
May 2018
Posts:
76
#7
02 Mar 2020, 22:32
after running the tobit and computing below mfx
mfx compute,predict (ystar(0,.))
it says
warning: predict() expression ystar(0,.) unsuitable for standard-error calculation;
option nose imposed
why so?
Last edited by
Olive Bat
;
02 Mar 2020, 22:39
.
Comment
Post
Cancel
Marcos Almeida
Join Date:
Apr 2014
Posts:
4047
#8
03 Mar 2020, 07:59
Please
read this tex
t, particularly #4
Best regards,
Marcos
Comment
Post
Cancel
Marcos Almeida
Join Date:
Apr 2014
Posts:
4047
#9
03 Mar 2020, 08:02
I do not use - mfx - command. That said, adding "." will skyrocket the upper limit for right censoring.
Best regards,
Marcos
Comment
Post
Cancel
Olive Bat
Join Date:
May 2018
Posts:
76
#10
03 Mar 2020, 09:30
Thanks Marcos will look into it.
Comment
Post
Cancel
Previous
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment