nathanb_1993 Tracker
https://communities.sas.com/kntur85557/tracker
nathanb_1993 TrackerSat, 07 Sep 2024 14:38:34 GMT2024-09-07T14:38:34ZRe: Logistic regression residuals
https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-residuals/m-p/412015#M21597
Hi Reeza,<BR /><BR />Agreed, though due to this being a logistic regression, rather than simple liner, can it be computed in a manner as simple as this?<BR /><BR />I actually think my statistical knowledge is getting all a bit confused!Thu, 09 Nov 2017 16:52:20 GMThttps://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-residuals/m-p/412015#M21597nathanb_19932017-11-09T16:52:20ZLogistic regression residuals
https://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-residuals/m-p/411978#M21589
<P>Hi,</P><P> </P><P>I have a dataset which has been created with both predicted and actual values from a logistic regression model (the only other information in the dataset are the original inputs into the model). </P><P> </P><P>The dataset was already created so no PROC LOGISTIC / GLM has been used.</P><P> </P><P>I know all of the individual parameters in the model and their estimates, however I need to do some analysis on the residuals which are not included in the dataset.</P><P> </P><P>Probably a longshot, but does anyone know how I could compute the residuals from these logistic regression model estimates and actuals?</P><P> </P><P>Thanks!</P><P> </P><P>Nathan</P>Thu, 09 Nov 2017 15:52:52 GMThttps://communities.sas.com/t5/Statistical-Procedures/Logistic-regression-residuals/m-p/411978#M21589nathanb_19932017-11-09T15:52:52ZRe: Enterprise Miner Surivival Modelling Help - Time Since Observation Confusion
https://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Surivival-Modelling-Help-Time-Since-Observation/m-p/379293#M5645
Hi,<BR /><BR />Very helpful video! I actually think we used it to expand our data which I've had a look over and it all seems to be OK.<BR /><BR />Just still having the issue of the _t_ = 0 month which is being included in the regression as a favourable month as there are no events, the post prior to this may help a little in explaining my confusion.<BR /><BR />Is there such a way that this can be avoided, i.e. avoid my hazard starting at 0?<BR /><BR />I realise this is probably quite confusing, but hopefully you can see where I'm coming from?<BR /><BR />ThanksWed, 26 Jul 2017 08:50:48 GMThttps://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Surivival-Modelling-Help-Time-Since-Observation/m-p/379293#M5645nathanb_19932017-07-26T08:50:48ZRe: Enterprise Miner Surivival Modelling Help - Time Since Observation Confusion
https://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Surivival-Modelling-Help-Time-Since-Observation/m-p/379130#M5644
<P>Hi Wendy,</P><P> </P><P>Thanks for this, I'll have a watch of the videos when I'm back in the office tomrorow morning.</P><P> </P><P>As a little extra context (and you may be able to highlight what I've done incorrect with _t_), here is my current hazard function which I have output, my problem is with that initial spike at 1. When the node does the regression, it's treating 0 as a very favourable month (since no events occur here as it's my observation month)</P><P> </P><P><IMG title="Hazard.PNG" alt="Hazard.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/10514iE4513C60C4CBCFCC/image-size/original?v=1.0&px=-1" border="0" /></P><P> </P><P>Thank you</P>Tue, 25 Jul 2017 16:50:56 GMThttps://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Surivival-Modelling-Help-Time-Since-Observation/m-p/379130#M5644nathanb_19932017-07-25T16:50:56ZRe: Enterprise Miner Surivival Modelling Help - Time Since Observation Confusion
https://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Surivival-Modelling-Help-Time-Since-Observation/m-p/379091#M5641
<P>So for Enterprise Miner we believe it's required we set the data up in the this structure, learnt from SAS documentation and guidance available, we need multiple records per ID for the change of the _t_ variable which is time since observation.</P><P> </P><P>No worries though, I'll keep this in mind and see if anything is happening behind the scenes. Thanks for the input.</P>Tue, 25 Jul 2017 15:43:53 GMThttps://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Surivival-Modelling-Help-Time-Since-Observation/m-p/379091#M5641nathanb_19932017-07-25T15:43:53ZRe: Enterprise Miner Surivival Modelling Help - Time Since Observation Confusion
https://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Surivival-Modelling-Help-Time-Since-Observation/m-p/379083#M5639
<P>Hi Reeza,</P><P> </P><P>Below is an imagine which shows 3 (simple) examples of observations in my dataset. Hopefully this will help in understanding my data setup, obviously my actual dataset is considerably larger than this! But the image shows the two outcomes in my datset, either 'EVENT' = 1 if the event eventually happened in which case the END_DATE is populated, or event = 0 at the end of the ID, so END_DATE is not populated. Each ID is independent.</P><P><IMG title="Data Set Up.PNG" alt="Data Set Up.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/10509iC82302C8267CB912/image-size/original?v=1.0&px=-1" border="0" /></P><P>Don't worry about the extra Variables, just in there as an example.</P><P> </P><P>As mentioned previously, there are no instances where we have start_date = end_date since _t_ = 0 has no events as this is an initial observation month.</P><BR /><IMG src="https://communities.sas.com/t5/image/serverpage/image-id/14138iFB7ED038E5612086/image-size/large?v=1.0&px=600" border="0" alt="Data Set Up.PNG" title="Data Set Up.PNG" />Tue, 25 Jul 2017 15:35:16 GMThttps://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Surivival-Modelling-Help-Time-Since-Observation/m-p/379083#M5639nathanb_19932017-07-25T15:35:16ZEnterprise Miner Surivival Modelling Help - Time Since Observation Confusion
https://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Surivival-Modelling-Help-Time-Since-Observation/m-p/379016#M5632
<P>Hi,</P><P> </P><P>I was hoping someone may be able to help me with some confusion around the survival node in Enterprise Miner, paticularly with the way that my data is structured.</P><P> </P><P>Some quick background, I'm attempting to model the time to defaulting on a mortgage, a simple 1 or 0 binary flag. For every observation I have the _T_ variable which is my time since observation and starts from 0 and goes up to all the observations for following months, with an end date recorded if the event mentioned above happens.</P><P> </P><P>Within my data _t_ = 0 is the initial obs month and no accounts here have hit the event described above. As a result of this, I've noticed that there are a couple of issues with the way that cubic splines are being calculated, mainly as the hazard function has a sharp spike at _t_ = 1, as this is actually where my highest event rate occurs.</P><P> </P><P>Upon noticing that the sharp spike is being used as part of the spline fitting, I realise this is most likely not what I want to be happening. I am correct to include _t_ = 0 with no events in my dataset when using the surivival node?</P><P> </P><P> </P><P>Please let me know if some more information is needed.</P><P> </P><P>Thanks!</P><P>Nathan</P>Tue, 25 Jul 2017 14:15:47 GMThttps://communities.sas.com/t5/SAS-Data-Science/Enterprise-Miner-Surivival-Modelling-Help-Time-Since-Observation/m-p/379016#M5632nathanb_19932017-07-25T14:15:47Z