Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CASE OPENED] Issues with Load type and long arithmatical formulas

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE OPENED] Issues with Load type and long arithmatical formulas
 Login/Join
 
Gold member
posted
Hi All. I've run a regression model on some data in R that I want predictions for. I've input the following defines into the DMC:


DEFINE PROB1/D12.8=-858.42301
-3.719857*ADMIT_CONDITION
-1.940163*AGE
+0.001839*AGE*INDIA
-3.294986*CHINA
+8.969689*CIS_DEG
-18.19678*CIS_DEG*COMPLIANCE
+20.924397*COMPLIANCE
+4.252925*ELPV_060
-3.109407*ELPV_070
-18.488914*ELPV_080
-35.315861*ELPV_100
+2.209021*ELPV_100*AGE
+8.477627*ELPV_100*CIS_DEG
+3.806944*FALL
+179.00265*FIRST_DAY_TO_APP_TIME
-1.467934*GENDER1
+25.041572*HS_GRAD
-14.409795*FIRST_DAY_TO_APP_TIME**2
+0.504913*FIRST_DAY_TO_APP_TIME**3
-0.006499*FIRST_DAY_TO_APP_TIME**4
+20.793924*IN_PROGRESS
+0.13704*INDIA
+26.45438*OTHER_ADMIT
+23.891475*POST_SEC
+3.479564*WINTER; $
DEFINE PROB2/D12.8=IF AGENT_TYPE EQ 'General Agents' THEN -0.668142 ELSE
IF AGENT_TYPE EQ 'Pending Agent' THEN 14.195363 ELSE
IF AGENT_TYPE EQ 'Sub-agent' THEN 22.703964 ELSE
IF AGENT_TYPE EQ 'Unknown' THEN 34.893819 ELSE 0; $
DEFINE PROBABILITY/D12.8 =EXP(PROB1+PROB2,'D12.8')/(1+EXP(PROB1+PROB2,'D12.8')); $

If I use the Bulk loader, I get the following error:

ORA-01722: invalid number
Record 4: Rejected - Error on table PROJECTIONS_12_MONTHS_OUT, column PROBABILITY

If I use the Insert Records from Memory option, I get wrong answers. I get correct answers in excel, to double check.

If I use Insert/Update, I the PROBABILITY field is just 0 everywhere.

Any thoughts on what I can do to fix this?

This message has been edited. Last edited by: FP Mod Chuck,


WebFocus 8.104
Windows 7 Entreprise, SP1
 
Posts: 82 | Location: Abbotsford BC | Registered: March 15, 2010Report This Post
Virtuoso
posted Hide Post
Max

The DEFINE for PROB1 looks incorrect to me. You have numbers and alpha all strung together for a D12.8 field.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Gold member
posted Hide Post
Hi Chuck,

The fields called are all I1 format, with the exception of AGE and FIRST_DAY_TO_APP_TIME, which use the D12.2 format.

Both PROB1 and PROB2 don't (seem) to have any issues in the DMC. (No error flags or messages from those defines.)


WebFocus 8.104
Windows 7 Entreprise, SP1
 
Posts: 82 | Location: Abbotsford BC | Registered: March 15, 2010Report This Post
Virtuoso
posted Hide Post
Max

I don't have an answer for you, I suggest you open a case with techsupport.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Gold member
posted Hide Post
quote:
Originally posted by FP Mod Chuck:
Max

I don't have an answer for you, I suggest you open a case with techsupport.


Chuck, I have. Thank you for trying to help!


WebFocus 8.104
Windows 7 Entreprise, SP1
 
Posts: 82 | Location: Abbotsford BC | Registered: March 15, 2010Report This Post
Guru
posted Hide Post
Which other fields do you have in your table? It could be that a text field contains a delimiter and messes up the file layout.

Could you try to load only the numeric data? Or load to a text file and see it it's right there?


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CASE OPENED] Issues with Load type and long arithmatical formulas

Copyright © 1996-2020 Information Builders