Get Statistics results in a program...
03-23-2015, 02:05 PM
Post: #1
 salvomic Senior Member Posts: 1,366 Joined: Jan 2015
Get Statistics results in a program...
hi,
why I get error with this code?
Code:
 myvar:= Statistic_2var.MeanY;
but not with
Code:
 myvar:= Statistic_2var.Resid(); // or myvar:= Resid();
?
if I type "Statistic_2var.MeanY" in CAS or Home it's ok, but I get error in a program...
where I'm wrong?

Salvo

∫aL√0mic (IT9CLU), HP Prime 50g 41CX 71b 42s 12C 15C - DM42 WP34s :: Prime Soft. Lib
03-23-2015, 04:47 PM
Post: #2
 eried Senior Member Posts: 739 Joined: Dec 2013
RE: Get Statistics results in a program...
Mine reboots if I eval Statistic_2var.MeanY in home

My website: erwin.ried.cl
10-09-2015, 07:44 AM (This post was last modified: 10-09-2015 08:02 AM by StephenG1CMZ.)
Post: #3
 StephenG1CMZ Senior Member Posts: 826 Joined: May 2015
RE: Get Statistics results in a program...
This is probably obvious, but what I have found so far on the Android emulator:

The App is statistics with an s: Statistics_2Var
If you select the variables from the toolbox/App/Statistics_2Var,
Resid is listed but MeanY is not.

Suggesting that perhaps that variable is not defined in that App. I also tried1Var: same .

But typing it in at Home gives Error: Insufficient data (I haven't set any up), meaning Home recognises MeanY.

Update: But then I re-edited my program changing 1Var.MeanY back to 2Var.MeanY - and now it compiles! So: Did I have a typo earlier? Or did the Home evaluation change something?
Code:
 EXPORT TR() BEGIN  PRINT(Statistics_2Var.MeanY);  PRINT(Statistics_2Var.Do2VStats());    WAIT; END;

Stephen Lewkowicz (G1CMZ)
11-12-2015, 01:41 AM
Post: #4
 mkokot Junior Member Posts: 2 Joined: Sep 2014
RE: Get Statistics results in a program...
You may have ran into the same problem I ran into. It depends on the mode type used. In any case you can review what I posted as a possible work around. Please review the following thread.