Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: roc with three samples
From
"DeMichele, Matthew" <[email protected]>
To
<[email protected]>
Subject
st: roc with three samples
Date
Fri, 1 Nov 2013 10:36:28 -0400
I am interested to compare ROC AUC estimates across three samples. I have tried several iterations of the syntax below alternating the inclusion and placement of "clear." I continue to receive this error message: "no; data in memory would be lost." Are there any suggestions for what I am doing wrong with the syntax? Thank you in advance of any suggestions.
Best,
Matthew
use "E:\PSU-New Folder\nhtsa\articles\SSR\data\samples\SSR-DUI-Experimental County - 50%-Validation.dta"
logistic rappts sex age white_nonhisp unmarried angry cope employed miswork weed suspend driven treatment serious 018 dwitreat
predict p if e(sample), p
gen dataset=1
save temp,replace
use "E:\PSU-New Folder\nhtsa\articles\SSR\data\samples\SSR-DUI-Experimental County - 50%-Training.dta"
logistic rappts sex age white_nonhisp unmarried angry cope employed miswork weed suspend driven treatment serious 018 dwitreat
predict p if e(sample), p
gen dataset=2
save temp, replace
use "E:\PSU-New Folder\nhtsa\articles\SSR\data\samples\SSR-DUI- Excluded Counties.dta"
logistic rappts sex age white_nonhisp unmarried angry cope employed miswork weed suspend driven treatment serious 018 dwitreat
predict p if e(sample), p
gen dataset=3
save temp, replace
append using temp
roccomp rappts p, by(dataset)
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Alfonso Sánchez-Peñalver
Sent: Friday, November 01, 2013 10:34 AM
To: Stata List
Subject: Re: st: scatterplot with equation line
Hi,
you could always predict the expected value of the response variable after your regression and plot that as the line.
Best,
Alfonso
On Nov 1, 2013, at 10:24 AM, Scott Merryman <[email protected]> wrote:
> See -help twoway function-
>
> For example:
>
> sysuse auto
> scatter price mpg || function y = 11000 - 400*x + 5*x^2, range(10 40)
>
> Scott
>
>
>
>
> On Fri, Nov 1, 2013 at 9:17 AM, Alice Guerra <[email protected]> wrote:
>> Dear Statalists,
>>
>> how can I do a scatterplot with a specific equation line?
>>
>> In particular, I would like to plot a scatter with a regression line
>> that does not derive from an OLS, but from a dummy regression (so, I
>> cannot use lfit).
>>
>> Thank you for your help and for your time
>>
>> Best regards
>>
>> Alice Guerra
>> *
>> * For searches and help try:
>> * http://www.stata.com/help.cgi?search
>> * http://www.stata.com/support/faqs/resources/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/faqs/resources/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/faqs/resources/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/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/