+ Reply to Thread
Results 1 to 3 of 3

Setting threshold to assign real values to class values

  1. #1
    Registered User
    Join Date
    05-05-2011
    Location
    Galway, Ireland
    MS-Off Ver
    Excel 2007
    Posts
    1

    Setting threshold to assign real values to class values

    Hello folks. I am doing a data mining regression exercise and after getting prediction results which are real values, (e.g. 5.78137) i need to assign these to class values (e.g. 5 or 6 depending on the threshold value I use). I am trying to do this in excel and would logically think that the formula would be something like this: =IF(M2>"*.4","*+1","*"). This obviously isn't the formula but i thought including it here could help convey what i'm trying to do. The * in the formula represents the 5 in the 5.78137. Does anyone have any ideas on how exactly you assign real values to class values based on a threshold value e.g. 0.4.

    Thanks in advance.

    Barry.

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Setting threshold to assign real values to class values

    Look at formula in column B in the attached file. Is this what you where looking for?
    You can change the treshold value in cell B1.
    Pierre
    Attached Files Attached Files

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Setting threshold to assign real values to class values

    You might look at the CEILING function.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1