The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Problem with MISSING VALUES
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

a_user

USA
0 Posts

Posted - 08/14/1998 :  12:36:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello Origin Users,

I' ve imported SPSS data via the DBF format into Origin. Unfortunalety,
SPSS system missing values are convereted into zeros (0). While calculating
statistics on the data, Origin uses the 0s as valid data - logical.

Question: Is there any possibility to define MISSING VALUES in Origin?

Thanks for Your time.

Regards

Olaf

a_user

USA
0 Posts

Posted - 08/14/1998 :  12:38:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
.... missing values

I do not exaxtly know you mean by "defining",values

if you just want to replace "0" by missing value after importing your data, the answer is simple: you just highlight all cells which contain "0" and type "--"
(two minus signs) to replace its values. As you will know, you can do this with whole rows or columns with the simple command edit: clear.

if this seems very time consuming to you, it is possible to use set column or Labtalk Scripts. Of course this only works if your data will not contain deliberately set values of zero. Most simple is a set columns command :
set columns.....
col(A)= (col(A)==0) ? silly : col(A)
A (B, C, D , Ei, Blut, Kakao) is the name of the column
this is a simple if then sequence. It checks if a value in the columns is 0. If no it replaces the actual value with the actual value (i.e. does nothing), if yes it replaces 0 with the value of the variable "silly". As you did not set a value to this variable, it has the value "--" .(!?). In other words what you do is cheating Origin with its own bugs. ;->

if you want to set this as a option during import (which is what I would name as definining), I don't know how to do this, but I think this will not work.

Hope this helps, Peter

P.S.: Warum um Himmels willen rechnest Du mit Daten, die Du schon in SPSS hast, noch in Origin rum ?

Go to Top of Page

a_user

USA
0 Posts

Posted - 08/14/1998 :  12:41:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Origin's Missing Value

When spreadsheet programs first appeared on computers it was recognized that there was a need for a special number that was Not-A-Number which would - when used in a calculation - generate itself. This value went by several shorthand notations including NAN and NANUM. Origin has such a number and its internal value is -1.23456789E-300. Since this value is out of the range of numeric assignment (1E-128 to 1E+127) we need a way to enter this in worksheets and use it in calculations.
The Origin worksheet displays missing values as "--", but don't confuse this display (output) with what you enter as a missing value (input). If a worksheet column is type numeric, then entering any text:

"silly" "--" "oops"

will set the cell's value to missing value. For other column types you can only manually enter missing values by typing something that Origin recognizes as invalid - 13 in a column of type Month for example.
When you need to use missing values in an equation you could just refer to a variable that is never assigned or divide anything by zero to generate a missing value. A script to replace all instances of -1 in column 2 of a worksheet would then be:
col(2)=col(2)==-1?1/0:col(2)
which says:
IF column 2 equals -1
THEN replace it with 1/0 (our missing value)
ELSE keep the original value

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000