|
List users,
I have run a discriminant analysis in SPSS and would like to use the discrim score to transform the prior probabilities to posterior probabilities. I've run a discrim against a 7 level target. However, I need to score a separate dataset with the equation I created. I would like to not only have the score in my new dataset but also the probability that SPSS produces. I have no problem computing a score with the discrim equation. If I score a new record that hits my database with the 7 level discrim equation, I get seven scores for that record. I would also like to get 7 new variables that track the probability of being in each group (summing all probabilities would equal 1). Has anyone encountered a task like this? I know SPSS uses Bayes' theorem to do this, but I can't quite get the formula to work on my new records. Also, I have to transport this solution into another application. I canât bring my new data back into SPSS. Thanks in advance for any help provided. Best, Matt ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
|
If you add the new cases to your original data file, with a value for
your grouping variable that is outside the range you specify in the DISCRIMINANT Groups= specification. for example if your 7 groups have values 1 to 7 on myvar use the value 8 for the cases that are not previously classified. DISCRIMINANT Groups= myvar(1,7) . . . /classify . . . /save . . . Art Kendall Social Research Consultants Matthew wrote: > List users, > I have run a discriminant analysis in SPSS and would like to use the discrim > score to transform the prior probabilities to posterior probabilities. I've > run a discrim against a 7 level target. However, I need to score a separate > dataset with the equation I created. I would like to not only have the score > in my new dataset but also the probability that SPSS produces. I have no > problem computing a score with the discrim equation. If I score a new record > that hits my database with the 7 level discrim equation, I get seven scores > for that record. I would also like to get 7 new variables that track the > probability of being in each group (summing all probabilities would equal > 1). Has anyone encountered a task like this? I know SPSS uses Bayes' theorem > to do this, but I can't quite get the formula to work on my new records. > Also, I have to transport this solution into another application. I can’t > bring my new data back into SPSS. Thanks in advance for any help provided. > > Best, > Matt > > ===================== > To manage your subscription to SPSSX-L, send a message to > [hidden email] (not to SPSSX-L), with no body text except the > command. To leave the list, send the command > SIGNOFF SPSSX-L > For a list of commands to manage subscriptions, send the command > INFO REFCARD > > > ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
| Free forum by Nabble | Edit this page |
