Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

reading forecasts for split file variables

270003PNBV gravatar image
Question by PNBV_Lukasz_Gaza  (0) | Dec 03, 2010 at 11:38 AM spssstatisticsextensibilitypython
 Hi,<br>
  I have an input file with two variables: the first one (V1) is a name of a metric, and the second one (V2) if a measured value for V1 metric. Each metric has many values. I use SPLIT FILE on V1 variable and then calculate forecasts using V2 as dependent variable (f.e. using Forecasting's Expert Modeler).<br>
  In viewer I receive separate table for each SPLIT FILE variable. But using <br>
  forecast = spssaux.getValuesFromXmlWorkspace(dsc_table, 'Forecast', rowCategory="Forecast", cellAttrib="number")<br>
  I receive one big list with forecasts for each SPLIT FILE varaible (all forecasts are in one list).<br>
  Is there possibility to read forecasts for one specific SPLIT FILE (V1) variable? How can I detect number of predicted forecasts for each V1 variable or check variables for which forecasts were calculated?<br>


Regards,
Lukasz

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

3 answers

  • Sort: 
110000D4XK gravatar image

Answer by SystemAdmin (532) | Dec 03, 2010 at 02:00 PM

 Please post an spv file containing a table of the type you are trying to retrieve from. It might be that you will have to use the lower level spss.EvaluateXPath api, but let's first torture the getValues api.
  
             
Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
270003PNBV gravatar image

Answer by PNBV_Lukasz_Gaza (0) | Dec 03, 2010 at 08:14 PM

 Thanks Jon.<br>
  I attached the file I use.
  
             
Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
110000D4XK gravatar image

Answer by SystemAdmin (532) | Dec 04, 2010 at 03:21 PM

 I'm not following what you are doing.<br>
  You can't split by v1 in your data, because it is too long. Are you autorecoding it first?<br>
  And are you using SPLIT FILE SEPARATE?<br>
  Which output table(s) are you actually retrieving, and how are you generating the forecasts? You can't use Apply TS models when split files is on.<br>
  If you are retrieving the parameter table to do the forecasting yourself, are you checking whether the EM chose exponential smoothing or ARIMA?<br>


The most helpful clarification would be for you to post an spv with the actual output table(s) you need to retrieve.

Regards,
Jon

Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

46 people are following this question.

Answers

Answers & comments

Related questions

Problems getting variable names 13 Answers

How to install Python Essentials into the system Python 1 Answer

'Dataset' class incredibly slow - any other option for accessing cases from multiple files 1 Answer

Showing frequency row dimension labels with SPSSINC MODIFY TABLES? 5 Answers

Current Variable Labels as value for new variable 5 Answers

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges