SlideShare a Scribd company logo
1 of 27
Transform
Computing Variables
• Use the Compute dialog box to compute values for a variable based on
numeric transformations of other variables.
– You can compute values for numeric or string (alphanumeric) variables.
– You can create new variables or replace the values of existing variables. For
new variables, you can also specify the variable type and label.
– You can compute values selectively for subsets of data based on logical
conditions.
– You can use a large variety of built-in functions, including arithmetic
functions, statistical functions, distribution functions, and string functions.
To Compute Variables
• From the menus choose:
– Transform > Compute Variable...
– Type the name of a single target variable. It can be an existing variable or a
new variable to be added to the active dataset.
– To build an expression, either paste components into the Expression field
or type directly in the Expression field.
– You can paste functions or commonly used system variables by selecting a
group from the Function group list and double-clicking the function or
variable in the Functions and Special Variables list (or select the function or
variable and click the arrow adjacent to the Function group list). Fill in any
parameters indicated by question marks (only applies to functions). The
function group labeled All provides a listing of all available functions and
system variables. A brief description of the currently selected function or
variable is displayed in a reserved area in the dialog box.
– String constants must be enclosed in quotation marks or apostrophes.
– If values contain decimals, a period (.) must be used as the decimal
indicator.
– For new string variables, you must also select Type & Label to specify the
data type.
From the menus in the Data Editor window choose:
Transform > Compute Variable...
Minus_Value1Value2= Value1-Value2
+, <,>,<=,>=,
-
*
/
Replace Missing Value
Weigh Case
• Weight Cases gives cases different weights (by simulated replication) for
statistical analysis.
• • The values of the weighting variable should indicate the number of
observations represented by single cases in your data file.
• • Cases with zero, negative, or missing values for the weighting variable are
excluded from analysis.
• • Fractional values are valid and some procedures, such as Frequencies,
Crosstabs, and Custom Tables, will use fractional weight values. However, most
procedures treat the weighting variable as a replication weight and will simply
round fractional weights to the nearest integer. Some procedures ignore the
weighting variable completely, and this limitation is noted in the procedure-
specific documentation.
• Once you apply a weight variable, it remains in effect until you select another
weight variable or turn off weighting. If you save a weighted data file,
weighting information is saved with the data file. You can turn off weighting at
any time, even after the file has been saved in weighted form.
Weigh Case
• If you want to see the frequency of freq in cross tab
Analyze=>Descriptie Statistic=>
Crosstabs
Row(s):sex
Column(s):choice
Data=>Weight Cases
Weight case by:
freq
Split file
Analyze=>Descriptive Statistic
Variable: income
Split file
Rank Value
Rank case
• The Rank Cases dialog box allows you to create new variables
containing ranks, normal and Savage scores, and percentile values
for numeric variables.
• New variable names and descriptive variable labels are
automatically generated, based on the original variable name and
the selected measure(s). A summary table lists the original
variables, the new variables, and the variable labels. (Note: The
automatically generated new variable names are limited to a
maximum length of 8 bytes.)
• Optionally, you can:
• • Rank cases in ascending or descending order.
• • Organize rankings into subgroups by selecting one or more
grouping variables for the By list. Ranks are computed within each
group. Groups are defined by the combination of values of the
grouping variables. For example, if you
select gender and minority as grouping variables, ranks are
computed for each combination of gender and minority.
Transform=>Rank Case…
4. chapter iv(transform)

More Related Content

What's hot

Spss data analysis for univariate, bivariate and multivariate statistics by d...
Spss data analysis for univariate, bivariate and multivariate statistics by d...Spss data analysis for univariate, bivariate and multivariate statistics by d...
Spss data analysis for univariate, bivariate and multivariate statistics by d...Dr. Sola Maitanmi
 
Nurses Data Analysis by Applied SPSS
Nurses Data Analysis by Applied SPSSNurses Data Analysis by Applied SPSS
Nurses Data Analysis by Applied SPSSijtsrd
 
Crystal tr///SAP Design Studio online training by design studio Export-24/7//...
Crystal tr///SAP Design Studio online training by design studio Export-24/7//...Crystal tr///SAP Design Studio online training by design studio Export-24/7//...
Crystal tr///SAP Design Studio online training by design studio Export-24/7//...venkat training
 
Data warehousing
Data warehousingData warehousing
Data warehousingAllen Woods
 
modelingtools
modelingtoolsmodelingtools
modelingtoolslearnt
 
Identification des systémes dynamiques
Identification des systémes dynamiquesIdentification des systémes dynamiques
Identification des systémes dynamiquesAyoub Moufid
 
Mapping inheritance structures_mapping_class
Mapping inheritance structures_mapping_classMapping inheritance structures_mapping_class
Mapping inheritance structures_mapping_classTodor Kolev
 

What's hot (10)

Data management through spss
Data management through spssData management through spss
Data management through spss
 
Spss data analysis for univariate, bivariate and multivariate statistics by d...
Spss data analysis for univariate, bivariate and multivariate statistics by d...Spss data analysis for univariate, bivariate and multivariate statistics by d...
Spss data analysis for univariate, bivariate and multivariate statistics by d...
 
BAPI - Criação de Ordem de Manutenção
BAPI - Criação de Ordem de ManutençãoBAPI - Criação de Ordem de Manutenção
BAPI - Criação de Ordem de Manutenção
 
Nurses Data Analysis by Applied SPSS
Nurses Data Analysis by Applied SPSSNurses Data Analysis by Applied SPSS
Nurses Data Analysis by Applied SPSS
 
Crystal tr///SAP Design Studio online training by design studio Export-24/7//...
Crystal tr///SAP Design Studio online training by design studio Export-24/7//...Crystal tr///SAP Design Studio online training by design studio Export-24/7//...
Crystal tr///SAP Design Studio online training by design studio Export-24/7//...
 
Spss
SpssSpss
Spss
 
Data warehousing
Data warehousingData warehousing
Data warehousing
 
modelingtools
modelingtoolsmodelingtools
modelingtools
 
Identification des systémes dynamiques
Identification des systémes dynamiquesIdentification des systémes dynamiques
Identification des systémes dynamiques
 
Mapping inheritance structures_mapping_class
Mapping inheritance structures_mapping_classMapping inheritance structures_mapping_class
Mapping inheritance structures_mapping_class
 

Viewers also liked

English CV - Sander Manck
English CV - Sander ManckEnglish CV - Sander Manck
English CV - Sander ManckSander Manck
 
นางสาวกัลย์สุดา บุตรศรี ชั้นม.4/8 เลขที่31
นางสาวกัลย์สุดา บุตรศรี ชั้นม.4/8 เลขที่31นางสาวกัลย์สุดา บุตรศรี ชั้นม.4/8 เลขที่31
นางสาวกัลย์สุดา บุตรศรี ชั้นม.4/8 เลขที่31Kansudabutsri
 
Practica 1 vidal cisneros gonzalez 2 a
Practica 1 vidal cisneros gonzalez 2 aPractica 1 vidal cisneros gonzalez 2 a
Practica 1 vidal cisneros gonzalez 2 avialillo
 
Nexans Euromold 152SR Screened Separable Straight Connector 12-24kV
Nexans Euromold 152SR Screened Separable Straight Connector 12-24kVNexans Euromold 152SR Screened Separable Straight Connector 12-24kV
Nexans Euromold 152SR Screened Separable Straight Connector 12-24kVThorne & Derrick International
 
Body estampado con falda
Body estampado con faldaBody estampado con falda
Body estampado con faldagchr68
 

Viewers also liked (6)

English CV - Sander Manck
English CV - Sander ManckEnglish CV - Sander Manck
English CV - Sander Manck
 
นางสาวกัลย์สุดา บุตรศรี ชั้นม.4/8 เลขที่31
นางสาวกัลย์สุดา บุตรศรี ชั้นม.4/8 เลขที่31นางสาวกัลย์สุดา บุตรศรี ชั้นม.4/8 เลขที่31
นางสาวกัลย์สุดา บุตรศรี ชั้นม.4/8 เลขที่31
 
Practica 1 vidal cisneros gonzalez 2 a
Practica 1 vidal cisneros gonzalez 2 aPractica 1 vidal cisneros gonzalez 2 a
Practica 1 vidal cisneros gonzalez 2 a
 
Diáspora
DiásporaDiáspora
Diáspora
 
Nexans Euromold 152SR Screened Separable Straight Connector 12-24kV
Nexans Euromold 152SR Screened Separable Straight Connector 12-24kVNexans Euromold 152SR Screened Separable Straight Connector 12-24kV
Nexans Euromold 152SR Screened Separable Straight Connector 12-24kV
 
Body estampado con falda
Body estampado con faldaBody estampado con falda
Body estampado con falda
 

Similar to 4. chapter iv(transform)

3. chapter iii(aggregate data)
3. chapter iii(aggregate data)3. chapter iii(aggregate data)
3. chapter iii(aggregate data)Chhom Karath
 
Advances in ms excel
Advances in ms excelAdvances in ms excel
Advances in ms excelMohit Kumar
 
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdfNitish Nagar
 
Enhancing statistical report capabilities using the clin plus report engine
Enhancing statistical report capabilities using the clin plus report engineEnhancing statistical report capabilities using the clin plus report engine
Enhancing statistical report capabilities using the clin plus report engineClin Plus
 
Introduction to STATA(2).pdf
Introduction to STATA(2).pdfIntroduction to STATA(2).pdf
Introduction to STATA(2).pdfYomif3
 
Spss by vijay ambast
Spss by vijay ambastSpss by vijay ambast
Spss by vijay ambastVijay Ambast
 
Advanced Filter Concepts in MS-Excel
Advanced Filter Concepts in MS-ExcelAdvanced Filter Concepts in MS-Excel
Advanced Filter Concepts in MS-ExcelP. SUNDARI ARUN
 
Obiee interview questions and answers faq
Obiee interview questions and answers faqObiee interview questions and answers faq
Obiee interview questions and answers faqmaheshboggula
 
Basic risk management facilitation methods
Basic risk management facilitation methodsBasic risk management facilitation methods
Basic risk management facilitation methodsRutuja Arlekar
 
L9 using datawarrior for scientific data visualization
L9 using datawarrior for scientific data visualizationL9 using datawarrior for scientific data visualization
L9 using datawarrior for scientific data visualizationSeppo Karrila
 
Introduction - Using Stata
Introduction - Using StataIntroduction - Using Stata
Introduction - Using StataRyan Herzog
 
Data weave (MuleSoft)
Data weave (MuleSoft)Data weave (MuleSoft)
Data weave (MuleSoft)Nandu List5
 

Similar to 4. chapter iv(transform) (20)

3. chapter iii(aggregate data)
3. chapter iii(aggregate data)3. chapter iii(aggregate data)
3. chapter iii(aggregate data)
 
Microsoft Excel Tutorial
Microsoft Excel TutorialMicrosoft Excel Tutorial
Microsoft Excel Tutorial
 
Minitab Seminar1.pptx
Minitab Seminar1.pptxMinitab Seminar1.pptx
Minitab Seminar1.pptx
 
Advances in ms excel
Advances in ms excelAdvances in ms excel
Advances in ms excel
 
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
 
Enhancing statistical report capabilities using the clin plus report engine
Enhancing statistical report capabilities using the clin plus report engineEnhancing statistical report capabilities using the clin plus report engine
Enhancing statistical report capabilities using the clin plus report engine
 
Visual binning
Visual binningVisual binning
Visual binning
 
Introduction to STATA(2).pdf
Introduction to STATA(2).pdfIntroduction to STATA(2).pdf
Introduction to STATA(2).pdf
 
Spss by vijay ambast
Spss by vijay ambastSpss by vijay ambast
Spss by vijay ambast
 
Advanced Filter Concepts in MS-Excel
Advanced Filter Concepts in MS-ExcelAdvanced Filter Concepts in MS-Excel
Advanced Filter Concepts in MS-Excel
 
5116427.ppt
5116427.ppt5116427.ppt
5116427.ppt
 
Obiee interview questions and answers faq
Obiee interview questions and answers faqObiee interview questions and answers faq
Obiee interview questions and answers faq
 
Advanced Excel ppt
Advanced Excel pptAdvanced Excel ppt
Advanced Excel ppt
 
Basic risk management facilitation methods
Basic risk management facilitation methodsBasic risk management facilitation methods
Basic risk management facilitation methods
 
L9 using datawarrior for scientific data visualization
L9 using datawarrior for scientific data visualizationL9 using datawarrior for scientific data visualization
L9 using datawarrior for scientific data visualization
 
Introduction - Using Stata
Introduction - Using StataIntroduction - Using Stata
Introduction - Using Stata
 
003.query
003.query003.query
003.query
 
Data weave (MuleSoft)
Data weave (MuleSoft)Data weave (MuleSoft)
Data weave (MuleSoft)
 
trs-3.ppt
trs-3.ppttrs-3.ppt
trs-3.ppt
 
trs-3.ppt
trs-3.ppttrs-3.ppt
trs-3.ppt
 

More from Chhom Karath

More from Chhom Karath (20)

set1.pdf
set1.pdfset1.pdf
set1.pdf
 
Set1.pptx
Set1.pptxSet1.pptx
Set1.pptx
 
orthodontic patient education.pdf
orthodontic patient education.pdforthodontic patient education.pdf
orthodontic patient education.pdf
 
New ton 3.pdf
New ton 3.pdfNew ton 3.pdf
New ton 3.pdf
 
ច្បាប់ញូតុនទី៣.pptx
ច្បាប់ញូតុនទី៣.pptxច្បាប់ញូតុនទី៣.pptx
ច្បាប់ញូតុនទី៣.pptx
 
Control tipping.pptx
Control tipping.pptxControl tipping.pptx
Control tipping.pptx
 
Bulbous loop.pptx
Bulbous loop.pptxBulbous loop.pptx
Bulbous loop.pptx
 
brush teeth.pptx
brush teeth.pptxbrush teeth.pptx
brush teeth.pptx
 
bracket size.pptx
bracket size.pptxbracket size.pptx
bracket size.pptx
 
arch form KORI copy.pptx
arch form KORI copy.pptxarch form KORI copy.pptx
arch form KORI copy.pptx
 
Bracket size
Bracket sizeBracket size
Bracket size
 
Couple
CoupleCouple
Couple
 
ច្បាប់ញូតុនទី៣
ច្បាប់ញូតុនទី៣ច្បាប់ញូតុនទី៣
ច្បាប់ញូតុនទី៣
 
Game1
Game1Game1
Game1
 
Shoe horn loop
Shoe horn loopShoe horn loop
Shoe horn loop
 
Opus loop
Opus loopOpus loop
Opus loop
 
V bend
V bendV bend
V bend
 
Closing loop
Closing loopClosing loop
Closing loop
 
Maxillary arch form
Maxillary arch formMaxillary arch form
Maxillary arch form
 
Front face analysis
Front face analysisFront face analysis
Front face analysis
 

Recently uploaded

MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 

Recently uploaded (20)

MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 

4. chapter iv(transform)

  • 2. Computing Variables • Use the Compute dialog box to compute values for a variable based on numeric transformations of other variables. – You can compute values for numeric or string (alphanumeric) variables. – You can create new variables or replace the values of existing variables. For new variables, you can also specify the variable type and label. – You can compute values selectively for subsets of data based on logical conditions. – You can use a large variety of built-in functions, including arithmetic functions, statistical functions, distribution functions, and string functions.
  • 3. To Compute Variables • From the menus choose: – Transform > Compute Variable... – Type the name of a single target variable. It can be an existing variable or a new variable to be added to the active dataset. – To build an expression, either paste components into the Expression field or type directly in the Expression field. – You can paste functions or commonly used system variables by selecting a group from the Function group list and double-clicking the function or variable in the Functions and Special Variables list (or select the function or variable and click the arrow adjacent to the Function group list). Fill in any parameters indicated by question marks (only applies to functions). The function group labeled All provides a listing of all available functions and system variables. A brief description of the currently selected function or variable is displayed in a reserved area in the dialog box. – String constants must be enclosed in quotation marks or apostrophes. – If values contain decimals, a period (.) must be used as the decimal indicator. – For new string variables, you must also select Type & Label to specify the data type.
  • 4. From the menus in the Data Editor window choose: Transform > Compute Variable... Minus_Value1Value2= Value1-Value2 +, <,>,<=,>=, - * /
  • 6. Weigh Case • Weight Cases gives cases different weights (by simulated replication) for statistical analysis. • • The values of the weighting variable should indicate the number of observations represented by single cases in your data file. • • Cases with zero, negative, or missing values for the weighting variable are excluded from analysis. • • Fractional values are valid and some procedures, such as Frequencies, Crosstabs, and Custom Tables, will use fractional weight values. However, most procedures treat the weighting variable as a replication weight and will simply round fractional weights to the nearest integer. Some procedures ignore the weighting variable completely, and this limitation is noted in the procedure- specific documentation. • Once you apply a weight variable, it remains in effect until you select another weight variable or turn off weighting. If you save a weighted data file, weighting information is saved with the data file. You can turn off weighting at any time, even after the file has been saved in weighted form.
  • 7. Weigh Case • If you want to see the frequency of freq in cross tab Analyze=>Descriptie Statistic=> Crosstabs Row(s):sex Column(s):choice
  • 8.
  • 12.
  • 13.
  • 14.
  • 15.
  • 17.
  • 18.
  • 19.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25. Rank case • The Rank Cases dialog box allows you to create new variables containing ranks, normal and Savage scores, and percentile values for numeric variables. • New variable names and descriptive variable labels are automatically generated, based on the original variable name and the selected measure(s). A summary table lists the original variables, the new variables, and the variable labels. (Note: The automatically generated new variable names are limited to a maximum length of 8 bytes.) • Optionally, you can: • • Rank cases in ascending or descending order. • • Organize rankings into subgroups by selecting one or more grouping variables for the By list. Ranks are computed within each group. Groups are defined by the combination of values of the grouping variables. For example, if you select gender and minority as grouping variables, ranks are computed for each combination of gender and minority.