SlideShare a Scribd company logo
V.2 CSPro Tabulation Application
[NAME]
[Position]
[Division]
Philippine Statistics Authority
[Date]
[Venue]
2022 CBMS Module II-B
CSPro Tabulation Application
PostCalc and Tab Logic
V.2 CSPro Tabulation Application
Slide presentations were developed by
Philippine Statistical Research and Training Institute and
Philippine Statistics Authority.
2
V.2 CSPro Tabulation Application
V. CSPro Tabulation Application
3
V.2 CSPro Tabulation Application
❏ Table Post Calculation (Post Calc)
❏ Table Logic (Tab Logic)
❏ Section I. Food Consumption
❏ Exercise 12
4
Presentation Outline
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
▪ In some cases, there is a need to do additional processing on tables after
all the tabulation is completed such as calculate ratios or sums using the
tabulated data.
▪ CSPro allows you to do this by adding program logic in the PostCalc
section of the Tally Attributes (Table) dialog.
▪ Use program logic to access and modify the cells in a table.
▪ In order to use table post calculations to add additional calculations to the
tabulated data, there is a need to insert a place in the table to put these
calculations.
5
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
▪ There are two ways to add a new column:
a. Add a new value to the existing value set for the existing variable
b. Drag a new variable onto the table next to the existing one
▪ Adding a new value to the value set creates a new column under the
existing spanner while adding a new variable creates a new column under
a new spanner.
6
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
a. Add a new value to the existing value set for the existing variable
• Male/Female Ratio column added as new value to value set for the
variable Sex. The new column is under the Sex spanner.
7
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
a. Add a new value to the existing value set for the existing variable
1. Open CSPro 7.7 and select Create a new application.
2. Select Tabulation Application and click OK.
3. Name the .xtb file as sample1 and click Save.
4. Select hpq_dictionary.dcf as <Input dictionary>.
8
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
a. Add a new value to the existing
value set for the existing
variable
5. Drag A05_SEX as column item.
6. Click to switch to Data
Dictionary.
7. Modify A05_SEX value set by adding
a new value.
8. Right-click in Window Pane and
select Add Value.
9
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
a. Add a new value to the
existing value set for the
existing variable
9. Specify Sex Ratio as Value Label
and 3 for From properties of the
new value.
10. Click to return to Table
application.
The table will be updated to
include Sex Ratio as another
column.
10
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
b. By dragging a new variable onto the table
• Male/Female Ratio column added by dragging a new variable onto the
table. The new column is under a separate spanner.
11
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
Post Calculation For Individual Cells
▪ CSPro supports modifying individual cells in a table through PostCalc Logic.
▪ After creating a new column for the calculation, specify PostCalc Logic to
populate the new column.
▪ To access an individual cell in a table, use the table name followed by the indices
of the row and column in parentheses.
▪ Example:
TABLE1(0,3) = TABLE1(0,1) / TABLE1(0,2) * 100;
12
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
Post Calculation For Individual Cells
TABLE1(0,3) = TABLE1(0,1) / TABLE1(0,2) * 100;
13
TABLE
NAME
COLUMN
ROW
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
Post Calculation For Individual Cells
Note that column and row numbers start at zero, so the first column is column
zero, the second column is column is column 1, etc.
14
0
0 1 2 3
Table(0,0) Table(0,1) Table(0,2) Table(0,3)
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
Post Calculation For Individual Cells
▪ To enter PostCalc logic for a table,
open the Tally Attributes (Table)
dialog. Either type the PostCalc logic
directly into the PostCalc area or click
the Edit button next to the PostCalc
area to bring up a larger window to
type in.
▪ Multiple statements may be entered in
PostCalc, provided that each one is
terminated by a semicolon.
15
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
Post Calculation For Rows, Columns and Ranges
▪ The PostCalc Logic for assigning rows and columns is similar to that of
individual cells, however there is a simplified syntax for working with cell
ranges, rows and columns. You could set each cell individually with
multiple statements as follows:
TABLE1(0,3) = TABLE1(0,1) / TABLE1(0,2)*100;
TABLE1(1,3) = TABLE1(1,1) / TABLE1(1,2) *100;
TABLE1(2,3) = TABLE1(2,1) / TABLE1(2,2) *100;
: : :
TABLE1(20,3) = TABLE1(20,1) / TABLE1(20,2) *100;
16
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
Post Calculation For Rows,
Columns and Ranges
▪ As example, in the Sex Ratio table,
add A09_MARITAL_STATUS
as row item.
▪ Click Tally Attributes.
▪ Click opposite PostCalc
section.
17
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
Post Calculation For Rows, Columns and Ranges
▪ Enter the following codes as PostCalc Logic:
TABLE1(0,3) = TABLE1(0,1) / TABLE1(0,2) * 100;
TABLE1(1,3) = TABLE1(1,1) / TABLE1(1,2) * 100;
TABLE1(2,3) = TABLE1(2,1) / TABLE1(2,2) * 100;
TABLE1(3,3) = TABLE1(3,1) / TABLE1(3,2) * 100;
TABLE1(4,3) = TABLE1(4,1) / TABLE1(4,2) * 100;
TABLE1(5,3) = TABLE1(5,1) / TABLE1(5,2) * 100;
TABLE1(6,3) = TABLE1(6,1) / TABLE1(6,2) * 100;
TABLE1(7,3) = TABLE1(7,1) / TABLE1(7,2) * 100;
▪ Click OK.
▪ Click to save and to run.
18
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
Post Calculation For Rows, Columns and Ranges
▪ Another way of coding using a range - to use a range, give the lower and
upper limits separated by a colon:
TABLE1[0:20,3] = TABLE1[0:20,1] / TABLE1[0:20,2]*100;
▪ This means divide the cell in column 1 by the cell in column 2 and put the
result in the cell in column 3 for each row from 0 to 20.
19
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
Post Calculation For Rows, Columns and Ranges
▪ Another way of coding using a wildcard - use a wildcard (an asterisk) to
specify an entire row or column:
TABLE1[*,3] = TABLE1[*,1] / TABLE1[*,2] * 100;
▪ Using an asterisk in place of the row index means that the operation
applies to all rows in the table.
20
V.2 CSPro Tabulation Application
Table Post Calculation (Post Calc)
Post Calculation For Rows, Columns and Ranges
▪ You can only assign ranges or wildcards to each other if the dimensions of
the ranges match.
▪ Example:
TABLE1[0:2, 0:3] = TABLE1[3:5, 0:3];
▪ The above code copies one 3 by 4 region of the table to another 3 by 4
region.
21
V.2 CSPro Tabulation Application 22
CSPro Tabulation Application
HP-I1. Average per Capita Weekly Food Consumption Expenditure
by Barangay: Municipality of Sugpon, 2022
EXAMPLE
V.2 CSPro Tabulation Application
1. Open CSPro 7.7 and select Create a new application.
2. Select Tabulation Application and click OK.
3. Name the .xtb file as HP-I1 and click Save.
4. Select hpq_dictionary.dcf as <Input dictionary>.
23
HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
V.2 CSPro Tabulation Application
5. Right-click the Working Storage
Record at the bottom of the Tree
Pane
6. Select Add Item to create two
new items.
• Household
• Indicator
24
HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
V.2 CSPro Tabulation Application
Refer to the following for the properties of the newly added items:
25
HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
V.2 CSPro Tabulation Application
7. Add a value set in the created item, Household.
8. Add a value set in the created item, Indicator.
26
HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
V.2 CSPro Tabulation Application
9. Drag all the newly created variables as column variable.
10. Remove the Total column from the Tally Attributes(variable_name) of
each variable.
27
HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
V.2 CSPro Tabulation Application
11. Indicate proper Table Title and Footnote.
Table Title:
Average per Capita Weekly Food Consumption Expenditure by Barangay:
Municipality of Sugpon, 2022
Footnote: 2022 Community-Based Monitoring System (CBMS)
28
HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
V.2 CSPro Tabulation Application
12. Click Tally Attributes.
13. Under the Table (Subtables): Entire Table, specify the universe.
HSN < 7777 and RESULT_OF_VISIT = 1
29
HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
V.2 CSPro Tabulation Application
14. Next, click the dropdown under the Table (Subtables): and select
SYSTEM_TOTAL by INDICATOR.
15. Then, specify the corresponding codes below:
Value Tallied: I04_TOTAL_FOOD_CONSUMPTION / count(SECTION_A_TO_E
where A02_RELATION_TO_HH_HEAD in 1:23)
Tab Logic: INDICATOR = 2;
PostCalc: TABLE1[*,1] = (TABLE1[*,1] / TABLE1[*,0]) / 52;
30
HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
V.2 CSPro Tabulation Application
16. Next, click the dropdown
under the Table (Subtables): and
select SYSTEM_TOTAL by
HOUSEHOLD.
17. Then, specify the TabLogic.
HOUSEHOLD = 1;
31
HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
V.2 CSPro Tabulation Application 32
HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
V.2 CSPro Tabulation Application
18. Click to specify area.
19. Select Region to Barangay from
the list of Questionnaire Items.
20. Click to add it into the Area
Items box and click OK.
33
HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
V.2 CSPro Tabulation Application
21. Click to save and to run.
22. Select:
sample_data.csdb as
<Input Data>
RegProvMunBrgy.anm as
<Area Names>
and click OK.
34
HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
V.2 CSPro Tabulation Application 35
EXERCISE 12
Tabulate:
HP-I2. Average per Capita Monthly Food Consumption Expenditure by
Barangay: Municipality of Sugpon, 2022

More Related Content

What's hot

ASMS Project Plan
ASMS Project PlanASMS Project Plan
ASMS Project Plan
Varuna Harshana
 
The ABCs of Treating Data as Product
The ABCs of Treating Data as ProductThe ABCs of Treating Data as Product
The ABCs of Treating Data as Product
DATAVERSITY
 
LeanIX Inventory: Import & Export
LeanIX Inventory: Import & ExportLeanIX Inventory: Import & Export
LeanIX Inventory: Import & Export
LeanIX GmbH
 
Data modeling star schema
Data modeling star schemaData modeling star schema
Data modeling star schema
Sayed Ahmed
 
Algorithmic Impact Assessment: Fairness, Robustness and Explainability in Aut...
Algorithmic Impact Assessment: Fairness, Robustness and Explainability in Aut...Algorithmic Impact Assessment: Fairness, Robustness and Explainability in Aut...
Algorithmic Impact Assessment: Fairness, Robustness and Explainability in Aut...
Adriano Soares Koshiyama
 
HIDDEN GEMS IN PBCS—THE BENEFITS THEY DON’T TELL YOU ABOUT
  HIDDEN GEMS IN PBCS—THE BENEFITS THEY DON’T TELL YOU ABOUT  HIDDEN GEMS IN PBCS—THE BENEFITS THEY DON’T TELL YOU ABOUT
HIDDEN GEMS IN PBCS—THE BENEFITS THEY DON’T TELL YOU ABOUT
Kyle Goodfriend
 

What's hot (6)

ASMS Project Plan
ASMS Project PlanASMS Project Plan
ASMS Project Plan
 
The ABCs of Treating Data as Product
The ABCs of Treating Data as ProductThe ABCs of Treating Data as Product
The ABCs of Treating Data as Product
 
LeanIX Inventory: Import & Export
LeanIX Inventory: Import & ExportLeanIX Inventory: Import & Export
LeanIX Inventory: Import & Export
 
Data modeling star schema
Data modeling star schemaData modeling star schema
Data modeling star schema
 
Algorithmic Impact Assessment: Fairness, Robustness and Explainability in Aut...
Algorithmic Impact Assessment: Fairness, Robustness and Explainability in Aut...Algorithmic Impact Assessment: Fairness, Robustness and Explainability in Aut...
Algorithmic Impact Assessment: Fairness, Robustness and Explainability in Aut...
 
HIDDEN GEMS IN PBCS—THE BENEFITS THEY DON’T TELL YOU ABOUT
  HIDDEN GEMS IN PBCS—THE BENEFITS THEY DON’T TELL YOU ABOUT  HIDDEN GEMS IN PBCS—THE BENEFITS THEY DON’T TELL YOU ABOUT
HIDDEN GEMS IN PBCS—THE BENEFITS THEY DON’T TELL YOU ABOUT
 

Similar to V.6 CSPro Tabulation Application_Creating Tables with PostCalc Application.pptx

Tableau + Redshift views for dummies
Tableau + Redshift views for dummiesTableau + Redshift views for dummies
Tableau + Redshift views for dummies
Ivan Magrans
 
DESIGN OF RADIX-8 BOOTH MULTIPLIER USING KOGGESTONE ADDER FOR HIGH SPEED ARIT...
DESIGN OF RADIX-8 BOOTH MULTIPLIER USING KOGGESTONE ADDER FOR HIGH SPEED ARIT...DESIGN OF RADIX-8 BOOTH MULTIPLIER USING KOGGESTONE ADDER FOR HIGH SPEED ARIT...
DESIGN OF RADIX-8 BOOTH MULTIPLIER USING KOGGESTONE ADDER FOR HIGH SPEED ARIT...
eeiej_journal
 
JOURNAL PAPER
JOURNAL PAPERJOURNAL PAPER
JOURNAL PAPERRaj kumar
 
Lab 2
Lab 2Lab 2
37182661 make-sectors-help2
37182661 make-sectors-help237182661 make-sectors-help2
37182661 make-sectors-help2
luganoi
 
MS Excel Pivot Table Reports & Charts
MS Excel Pivot Table Reports & ChartsMS Excel Pivot Table Reports & Charts
MS Excel Pivot Table Reports & Charts
dnbakhan
 
JKJ_SSRS PPS Excel Services Project.Documentation
JKJ_SSRS PPS Excel Services Project.DocumentationJKJ_SSRS PPS Excel Services Project.Documentation
JKJ_SSRS PPS Excel Services Project.Documentation
Jeff Jacob
 
Polymorphic Table Functions in 18c
Polymorphic Table Functions in 18cPolymorphic Table Functions in 18c
Polymorphic Table Functions in 18c
Andrej Pashchenko
 
Counting -cycle_count_using_mobile_application
Counting  -cycle_count_using_mobile_applicationCounting  -cycle_count_using_mobile_application
Counting -cycle_count_using_mobile_application
manitenkasi
 
Cardinality Estimation through Histogram in Apache Spark 2.3 with Ron Hu and ...
Cardinality Estimation through Histogram in Apache Spark 2.3 with Ron Hu and ...Cardinality Estimation through Histogram in Apache Spark 2.3 with Ron Hu and ...
Cardinality Estimation through Histogram in Apache Spark 2.3 with Ron Hu and ...
Databricks
 
MSCD650 Final Exam feedback FormMSCD650 Final Exam Grading For.docx
MSCD650 Final Exam feedback FormMSCD650 Final Exam Grading For.docxMSCD650 Final Exam feedback FormMSCD650 Final Exam Grading For.docx
MSCD650 Final Exam feedback FormMSCD650 Final Exam Grading For.docx
gilpinleeanna
 
Automated hdl generation of two’s complement wallace multiplier with par
Automated hdl generation of two’s complement wallace multiplier with parAutomated hdl generation of two’s complement wallace multiplier with par
Automated hdl generation of two’s complement wallace multiplier with parIAEME Publication
 
Star Transformation, 12c Adaptive Bitmap Pruning and In-Memory option
Star Transformation, 12c Adaptive Bitmap Pruning and In-Memory optionStar Transformation, 12c Adaptive Bitmap Pruning and In-Memory option
Star Transformation, 12c Adaptive Bitmap Pruning and In-Memory option
Franck Pachot
 
Create a correlation plot from joined tables and lag times
Create a correlation plot from joined tables and lag timesCreate a correlation plot from joined tables and lag times
Create a correlation plot from joined tables and lag times
DougLoqa
 
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docxENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
YASHU40
 
DOODB_LAB.pptx
DOODB_LAB.pptxDOODB_LAB.pptx
DOODB_LAB.pptx
FilestreamFilestream
 
Fx570 ms 991ms_e
Fx570 ms 991ms_eFx570 ms 991ms_e
Fx570 ms 991ms_e
Yosep Widian
 
Chapter 16-spreadsheet1 questions and answer
Chapter 16-spreadsheet1  questions and answerChapter 16-spreadsheet1  questions and answer
Chapter 16-spreadsheet1 questions and answer
RaajTech
 

Similar to V.6 CSPro Tabulation Application_Creating Tables with PostCalc Application.pptx (20)

Tableau + Redshift views for dummies
Tableau + Redshift views for dummiesTableau + Redshift views for dummies
Tableau + Redshift views for dummies
 
258lec11
258lec11258lec11
258lec11
 
DESIGN OF RADIX-8 BOOTH MULTIPLIER USING KOGGESTONE ADDER FOR HIGH SPEED ARIT...
DESIGN OF RADIX-8 BOOTH MULTIPLIER USING KOGGESTONE ADDER FOR HIGH SPEED ARIT...DESIGN OF RADIX-8 BOOTH MULTIPLIER USING KOGGESTONE ADDER FOR HIGH SPEED ARIT...
DESIGN OF RADIX-8 BOOTH MULTIPLIER USING KOGGESTONE ADDER FOR HIGH SPEED ARIT...
 
JOURNAL PAPER
JOURNAL PAPERJOURNAL PAPER
JOURNAL PAPER
 
Lab 2
Lab 2Lab 2
Lab 2
 
37182661 make-sectors-help2
37182661 make-sectors-help237182661 make-sectors-help2
37182661 make-sectors-help2
 
MS Excel Pivot Table Reports & Charts
MS Excel Pivot Table Reports & ChartsMS Excel Pivot Table Reports & Charts
MS Excel Pivot Table Reports & Charts
 
JKJ_SSRS PPS Excel Services Project.Documentation
JKJ_SSRS PPS Excel Services Project.DocumentationJKJ_SSRS PPS Excel Services Project.Documentation
JKJ_SSRS PPS Excel Services Project.Documentation
 
Polymorphic Table Functions in 18c
Polymorphic Table Functions in 18cPolymorphic Table Functions in 18c
Polymorphic Table Functions in 18c
 
Counting -cycle_count_using_mobile_application
Counting  -cycle_count_using_mobile_applicationCounting  -cycle_count_using_mobile_application
Counting -cycle_count_using_mobile_application
 
Cardinality Estimation through Histogram in Apache Spark 2.3 with Ron Hu and ...
Cardinality Estimation through Histogram in Apache Spark 2.3 with Ron Hu and ...Cardinality Estimation through Histogram in Apache Spark 2.3 with Ron Hu and ...
Cardinality Estimation through Histogram in Apache Spark 2.3 with Ron Hu and ...
 
MSCD650 Final Exam feedback FormMSCD650 Final Exam Grading For.docx
MSCD650 Final Exam feedback FormMSCD650 Final Exam Grading For.docxMSCD650 Final Exam feedback FormMSCD650 Final Exam Grading For.docx
MSCD650 Final Exam feedback FormMSCD650 Final Exam Grading For.docx
 
Automated hdl generation of two’s complement wallace multiplier with par
Automated hdl generation of two’s complement wallace multiplier with parAutomated hdl generation of two’s complement wallace multiplier with par
Automated hdl generation of two’s complement wallace multiplier with par
 
Star Transformation, 12c Adaptive Bitmap Pruning and In-Memory option
Star Transformation, 12c Adaptive Bitmap Pruning and In-Memory optionStar Transformation, 12c Adaptive Bitmap Pruning and In-Memory option
Star Transformation, 12c Adaptive Bitmap Pruning and In-Memory option
 
Create a correlation plot from joined tables and lag times
Create a correlation plot from joined tables and lag timesCreate a correlation plot from joined tables and lag times
Create a correlation plot from joined tables and lag times
 
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docxENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
ENGR 102B Microsoft Excel Proficiency LevelsPlease have your in.docx
 
Les09
Les09Les09
Les09
 
DOODB_LAB.pptx
DOODB_LAB.pptxDOODB_LAB.pptx
DOODB_LAB.pptx
 
Fx570 ms 991ms_e
Fx570 ms 991ms_eFx570 ms 991ms_e
Fx570 ms 991ms_e
 
Chapter 16-spreadsheet1 questions and answer
Chapter 16-spreadsheet1  questions and answerChapter 16-spreadsheet1  questions and answer
Chapter 16-spreadsheet1 questions and answer
 

Recently uploaded

Get Government Grants and Assistance Program
Get Government Grants and Assistance ProgramGet Government Grants and Assistance Program
Get Government Grants and Assistance Program
Get Government Grants
 
快速制作(ocad毕业证书)加拿大安大略艺术设计学院毕业证本科学历雅思成绩单原版一模一样
快速制作(ocad毕业证书)加拿大安大略艺术设计学院毕业证本科学历雅思成绩单原版一模一样快速制作(ocad毕业证书)加拿大安大略艺术设计学院毕业证本科学历雅思成绩单原版一模一样
快速制作(ocad毕业证书)加拿大安大略艺术设计学院毕业证本科学历雅思成绩单原版一模一样
850fcj96
 
ZGB - The Role of Generative AI in Government transformation.pdf
ZGB - The Role of Generative AI in Government transformation.pdfZGB - The Role of Generative AI in Government transformation.pdf
ZGB - The Role of Generative AI in Government transformation.pdf
Saeed Al Dhaheri
 
一比一原版(UQ毕业证)昆士兰大学毕业证成绩单
一比一原版(UQ毕业证)昆士兰大学毕业证成绩单一比一原版(UQ毕业证)昆士兰大学毕业证成绩单
一比一原版(UQ毕业证)昆士兰大学毕业证成绩单
ehbuaw
 
NHAI_Under_Implementation_01-05-2024.pdf
NHAI_Under_Implementation_01-05-2024.pdfNHAI_Under_Implementation_01-05-2024.pdf
NHAI_Under_Implementation_01-05-2024.pdf
AjayVejendla3
 
PPT Item # 7 - BB Inspection Services Agmt
PPT Item # 7 - BB Inspection Services AgmtPPT Item # 7 - BB Inspection Services Agmt
PPT Item # 7 - BB Inspection Services Agmt
ahcitycouncil
 
PPT Item # 6 - 7001 Broadway ARB Case # 933F
PPT Item # 6 - 7001 Broadway ARB Case # 933FPPT Item # 6 - 7001 Broadway ARB Case # 933F
PPT Item # 6 - 7001 Broadway ARB Case # 933F
ahcitycouncil
 
PD-1602-as-amended-by-RA-9287-Anti-Illegal-Gambling-Law.pptx
PD-1602-as-amended-by-RA-9287-Anti-Illegal-Gambling-Law.pptxPD-1602-as-amended-by-RA-9287-Anti-Illegal-Gambling-Law.pptx
PD-1602-as-amended-by-RA-9287-Anti-Illegal-Gambling-Law.pptx
RIDPRO11
 
The Role of a Process Server in real estate
The Role of a Process Server in real estateThe Role of a Process Server in real estate
The Role of a Process Server in real estate
oklahomajudicialproc1
 
一比一原版(UOW毕业证)伍伦贡大学毕业证成绩单
一比一原版(UOW毕业证)伍伦贡大学毕业证成绩单一比一原版(UOW毕业证)伍伦贡大学毕业证成绩单
一比一原版(UOW毕业证)伍伦贡大学毕业证成绩单
ehbuaw
 
如何办理(uoit毕业证书)加拿大安大略理工大学毕业证文凭证书录取通知原版一模一样
如何办理(uoit毕业证书)加拿大安大略理工大学毕业证文凭证书录取通知原版一模一样如何办理(uoit毕业证书)加拿大安大略理工大学毕业证文凭证书录取通知原版一模一样
如何办理(uoit毕业证书)加拿大安大略理工大学毕业证文凭证书录取通知原版一模一样
850fcj96
 
Effects of Extreme Temperatures From Climate Change on the Medicare Populatio...
Effects of Extreme Temperatures From Climate Change on the Medicare Populatio...Effects of Extreme Temperatures From Climate Change on the Medicare Populatio...
Effects of Extreme Temperatures From Climate Change on the Medicare Populatio...
Congressional Budget Office
 
Understanding the Challenges of Street Children
Understanding the Challenges of Street ChildrenUnderstanding the Challenges of Street Children
Understanding the Challenges of Street Children
SERUDS INDIA
 
一比一原版(Adelaide毕业证)阿德莱德大学毕业证成绩单
一比一原版(Adelaide毕业证)阿德莱德大学毕业证成绩单一比一原版(Adelaide毕业证)阿德莱德大学毕业证成绩单
一比一原版(Adelaide毕业证)阿德莱德大学毕业证成绩单
ehbuaw
 
PPT Item # 9 - 2024 Street Maintenance Program(SMP) Amendment
PPT Item # 9 - 2024 Street Maintenance Program(SMP) AmendmentPPT Item # 9 - 2024 Street Maintenance Program(SMP) Amendment
PPT Item # 9 - 2024 Street Maintenance Program(SMP) Amendment
ahcitycouncil
 
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单
ukyewh
 
Many ways to support street children.pptx
Many ways to support street children.pptxMany ways to support street children.pptx
Many ways to support street children.pptx
SERUDS INDIA
 
PACT launching workshop presentation-Final.pdf
PACT launching workshop presentation-Final.pdfPACT launching workshop presentation-Final.pdf
PACT launching workshop presentation-Final.pdf
Mohammed325561
 
MHM Roundtable Slide Deck WHA Side-event May 28 2024.pptx
MHM Roundtable Slide Deck WHA Side-event May 28 2024.pptxMHM Roundtable Slide Deck WHA Side-event May 28 2024.pptx
MHM Roundtable Slide Deck WHA Side-event May 28 2024.pptx
ILC- UK
 
一比一原版(WSU毕业证)西悉尼大学毕业证成绩单
一比一原版(WSU毕业证)西悉尼大学毕业证成绩单一比一原版(WSU毕业证)西悉尼大学毕业证成绩单
一比一原版(WSU毕业证)西悉尼大学毕业证成绩单
evkovas
 

Recently uploaded (20)

Get Government Grants and Assistance Program
Get Government Grants and Assistance ProgramGet Government Grants and Assistance Program
Get Government Grants and Assistance Program
 
快速制作(ocad毕业证书)加拿大安大略艺术设计学院毕业证本科学历雅思成绩单原版一模一样
快速制作(ocad毕业证书)加拿大安大略艺术设计学院毕业证本科学历雅思成绩单原版一模一样快速制作(ocad毕业证书)加拿大安大略艺术设计学院毕业证本科学历雅思成绩单原版一模一样
快速制作(ocad毕业证书)加拿大安大略艺术设计学院毕业证本科学历雅思成绩单原版一模一样
 
ZGB - The Role of Generative AI in Government transformation.pdf
ZGB - The Role of Generative AI in Government transformation.pdfZGB - The Role of Generative AI in Government transformation.pdf
ZGB - The Role of Generative AI in Government transformation.pdf
 
一比一原版(UQ毕业证)昆士兰大学毕业证成绩单
一比一原版(UQ毕业证)昆士兰大学毕业证成绩单一比一原版(UQ毕业证)昆士兰大学毕业证成绩单
一比一原版(UQ毕业证)昆士兰大学毕业证成绩单
 
NHAI_Under_Implementation_01-05-2024.pdf
NHAI_Under_Implementation_01-05-2024.pdfNHAI_Under_Implementation_01-05-2024.pdf
NHAI_Under_Implementation_01-05-2024.pdf
 
PPT Item # 7 - BB Inspection Services Agmt
PPT Item # 7 - BB Inspection Services AgmtPPT Item # 7 - BB Inspection Services Agmt
PPT Item # 7 - BB Inspection Services Agmt
 
PPT Item # 6 - 7001 Broadway ARB Case # 933F
PPT Item # 6 - 7001 Broadway ARB Case # 933FPPT Item # 6 - 7001 Broadway ARB Case # 933F
PPT Item # 6 - 7001 Broadway ARB Case # 933F
 
PD-1602-as-amended-by-RA-9287-Anti-Illegal-Gambling-Law.pptx
PD-1602-as-amended-by-RA-9287-Anti-Illegal-Gambling-Law.pptxPD-1602-as-amended-by-RA-9287-Anti-Illegal-Gambling-Law.pptx
PD-1602-as-amended-by-RA-9287-Anti-Illegal-Gambling-Law.pptx
 
The Role of a Process Server in real estate
The Role of a Process Server in real estateThe Role of a Process Server in real estate
The Role of a Process Server in real estate
 
一比一原版(UOW毕业证)伍伦贡大学毕业证成绩单
一比一原版(UOW毕业证)伍伦贡大学毕业证成绩单一比一原版(UOW毕业证)伍伦贡大学毕业证成绩单
一比一原版(UOW毕业证)伍伦贡大学毕业证成绩单
 
如何办理(uoit毕业证书)加拿大安大略理工大学毕业证文凭证书录取通知原版一模一样
如何办理(uoit毕业证书)加拿大安大略理工大学毕业证文凭证书录取通知原版一模一样如何办理(uoit毕业证书)加拿大安大略理工大学毕业证文凭证书录取通知原版一模一样
如何办理(uoit毕业证书)加拿大安大略理工大学毕业证文凭证书录取通知原版一模一样
 
Effects of Extreme Temperatures From Climate Change on the Medicare Populatio...
Effects of Extreme Temperatures From Climate Change on the Medicare Populatio...Effects of Extreme Temperatures From Climate Change on the Medicare Populatio...
Effects of Extreme Temperatures From Climate Change on the Medicare Populatio...
 
Understanding the Challenges of Street Children
Understanding the Challenges of Street ChildrenUnderstanding the Challenges of Street Children
Understanding the Challenges of Street Children
 
一比一原版(Adelaide毕业证)阿德莱德大学毕业证成绩单
一比一原版(Adelaide毕业证)阿德莱德大学毕业证成绩单一比一原版(Adelaide毕业证)阿德莱德大学毕业证成绩单
一比一原版(Adelaide毕业证)阿德莱德大学毕业证成绩单
 
PPT Item # 9 - 2024 Street Maintenance Program(SMP) Amendment
PPT Item # 9 - 2024 Street Maintenance Program(SMP) AmendmentPPT Item # 9 - 2024 Street Maintenance Program(SMP) Amendment
PPT Item # 9 - 2024 Street Maintenance Program(SMP) Amendment
 
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单
一比一原版(QUT毕业证)昆士兰科技大学毕业证成绩单
 
Many ways to support street children.pptx
Many ways to support street children.pptxMany ways to support street children.pptx
Many ways to support street children.pptx
 
PACT launching workshop presentation-Final.pdf
PACT launching workshop presentation-Final.pdfPACT launching workshop presentation-Final.pdf
PACT launching workshop presentation-Final.pdf
 
MHM Roundtable Slide Deck WHA Side-event May 28 2024.pptx
MHM Roundtable Slide Deck WHA Side-event May 28 2024.pptxMHM Roundtable Slide Deck WHA Side-event May 28 2024.pptx
MHM Roundtable Slide Deck WHA Side-event May 28 2024.pptx
 
一比一原版(WSU毕业证)西悉尼大学毕业证成绩单
一比一原版(WSU毕业证)西悉尼大学毕业证成绩单一比一原版(WSU毕业证)西悉尼大学毕业证成绩单
一比一原版(WSU毕业证)西悉尼大学毕业证成绩单
 

V.6 CSPro Tabulation Application_Creating Tables with PostCalc Application.pptx

  • 1. V.2 CSPro Tabulation Application [NAME] [Position] [Division] Philippine Statistics Authority [Date] [Venue] 2022 CBMS Module II-B CSPro Tabulation Application PostCalc and Tab Logic
  • 2. V.2 CSPro Tabulation Application Slide presentations were developed by Philippine Statistical Research and Training Institute and Philippine Statistics Authority. 2
  • 3. V.2 CSPro Tabulation Application V. CSPro Tabulation Application 3
  • 4. V.2 CSPro Tabulation Application ❏ Table Post Calculation (Post Calc) ❏ Table Logic (Tab Logic) ❏ Section I. Food Consumption ❏ Exercise 12 4 Presentation Outline
  • 5. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) ▪ In some cases, there is a need to do additional processing on tables after all the tabulation is completed such as calculate ratios or sums using the tabulated data. ▪ CSPro allows you to do this by adding program logic in the PostCalc section of the Tally Attributes (Table) dialog. ▪ Use program logic to access and modify the cells in a table. ▪ In order to use table post calculations to add additional calculations to the tabulated data, there is a need to insert a place in the table to put these calculations. 5
  • 6. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) ▪ There are two ways to add a new column: a. Add a new value to the existing value set for the existing variable b. Drag a new variable onto the table next to the existing one ▪ Adding a new value to the value set creates a new column under the existing spanner while adding a new variable creates a new column under a new spanner. 6
  • 7. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) a. Add a new value to the existing value set for the existing variable • Male/Female Ratio column added as new value to value set for the variable Sex. The new column is under the Sex spanner. 7
  • 8. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) a. Add a new value to the existing value set for the existing variable 1. Open CSPro 7.7 and select Create a new application. 2. Select Tabulation Application and click OK. 3. Name the .xtb file as sample1 and click Save. 4. Select hpq_dictionary.dcf as <Input dictionary>. 8
  • 9. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) a. Add a new value to the existing value set for the existing variable 5. Drag A05_SEX as column item. 6. Click to switch to Data Dictionary. 7. Modify A05_SEX value set by adding a new value. 8. Right-click in Window Pane and select Add Value. 9
  • 10. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) a. Add a new value to the existing value set for the existing variable 9. Specify Sex Ratio as Value Label and 3 for From properties of the new value. 10. Click to return to Table application. The table will be updated to include Sex Ratio as another column. 10
  • 11. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) b. By dragging a new variable onto the table • Male/Female Ratio column added by dragging a new variable onto the table. The new column is under a separate spanner. 11
  • 12. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) Post Calculation For Individual Cells ▪ CSPro supports modifying individual cells in a table through PostCalc Logic. ▪ After creating a new column for the calculation, specify PostCalc Logic to populate the new column. ▪ To access an individual cell in a table, use the table name followed by the indices of the row and column in parentheses. ▪ Example: TABLE1(0,3) = TABLE1(0,1) / TABLE1(0,2) * 100; 12
  • 13. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) Post Calculation For Individual Cells TABLE1(0,3) = TABLE1(0,1) / TABLE1(0,2) * 100; 13 TABLE NAME COLUMN ROW
  • 14. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) Post Calculation For Individual Cells Note that column and row numbers start at zero, so the first column is column zero, the second column is column is column 1, etc. 14 0 0 1 2 3 Table(0,0) Table(0,1) Table(0,2) Table(0,3)
  • 15. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) Post Calculation For Individual Cells ▪ To enter PostCalc logic for a table, open the Tally Attributes (Table) dialog. Either type the PostCalc logic directly into the PostCalc area or click the Edit button next to the PostCalc area to bring up a larger window to type in. ▪ Multiple statements may be entered in PostCalc, provided that each one is terminated by a semicolon. 15
  • 16. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) Post Calculation For Rows, Columns and Ranges ▪ The PostCalc Logic for assigning rows and columns is similar to that of individual cells, however there is a simplified syntax for working with cell ranges, rows and columns. You could set each cell individually with multiple statements as follows: TABLE1(0,3) = TABLE1(0,1) / TABLE1(0,2)*100; TABLE1(1,3) = TABLE1(1,1) / TABLE1(1,2) *100; TABLE1(2,3) = TABLE1(2,1) / TABLE1(2,2) *100; : : : TABLE1(20,3) = TABLE1(20,1) / TABLE1(20,2) *100; 16
  • 17. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) Post Calculation For Rows, Columns and Ranges ▪ As example, in the Sex Ratio table, add A09_MARITAL_STATUS as row item. ▪ Click Tally Attributes. ▪ Click opposite PostCalc section. 17
  • 18. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) Post Calculation For Rows, Columns and Ranges ▪ Enter the following codes as PostCalc Logic: TABLE1(0,3) = TABLE1(0,1) / TABLE1(0,2) * 100; TABLE1(1,3) = TABLE1(1,1) / TABLE1(1,2) * 100; TABLE1(2,3) = TABLE1(2,1) / TABLE1(2,2) * 100; TABLE1(3,3) = TABLE1(3,1) / TABLE1(3,2) * 100; TABLE1(4,3) = TABLE1(4,1) / TABLE1(4,2) * 100; TABLE1(5,3) = TABLE1(5,1) / TABLE1(5,2) * 100; TABLE1(6,3) = TABLE1(6,1) / TABLE1(6,2) * 100; TABLE1(7,3) = TABLE1(7,1) / TABLE1(7,2) * 100; ▪ Click OK. ▪ Click to save and to run. 18
  • 19. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) Post Calculation For Rows, Columns and Ranges ▪ Another way of coding using a range - to use a range, give the lower and upper limits separated by a colon: TABLE1[0:20,3] = TABLE1[0:20,1] / TABLE1[0:20,2]*100; ▪ This means divide the cell in column 1 by the cell in column 2 and put the result in the cell in column 3 for each row from 0 to 20. 19
  • 20. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) Post Calculation For Rows, Columns and Ranges ▪ Another way of coding using a wildcard - use a wildcard (an asterisk) to specify an entire row or column: TABLE1[*,3] = TABLE1[*,1] / TABLE1[*,2] * 100; ▪ Using an asterisk in place of the row index means that the operation applies to all rows in the table. 20
  • 21. V.2 CSPro Tabulation Application Table Post Calculation (Post Calc) Post Calculation For Rows, Columns and Ranges ▪ You can only assign ranges or wildcards to each other if the dimensions of the ranges match. ▪ Example: TABLE1[0:2, 0:3] = TABLE1[3:5, 0:3]; ▪ The above code copies one 3 by 4 region of the table to another 3 by 4 region. 21
  • 22. V.2 CSPro Tabulation Application 22 CSPro Tabulation Application HP-I1. Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022 EXAMPLE
  • 23. V.2 CSPro Tabulation Application 1. Open CSPro 7.7 and select Create a new application. 2. Select Tabulation Application and click OK. 3. Name the .xtb file as HP-I1 and click Save. 4. Select hpq_dictionary.dcf as <Input dictionary>. 23 HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
  • 24. V.2 CSPro Tabulation Application 5. Right-click the Working Storage Record at the bottom of the Tree Pane 6. Select Add Item to create two new items. • Household • Indicator 24 HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
  • 25. V.2 CSPro Tabulation Application Refer to the following for the properties of the newly added items: 25 HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
  • 26. V.2 CSPro Tabulation Application 7. Add a value set in the created item, Household. 8. Add a value set in the created item, Indicator. 26 HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
  • 27. V.2 CSPro Tabulation Application 9. Drag all the newly created variables as column variable. 10. Remove the Total column from the Tally Attributes(variable_name) of each variable. 27 HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
  • 28. V.2 CSPro Tabulation Application 11. Indicate proper Table Title and Footnote. Table Title: Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022 Footnote: 2022 Community-Based Monitoring System (CBMS) 28 HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
  • 29. V.2 CSPro Tabulation Application 12. Click Tally Attributes. 13. Under the Table (Subtables): Entire Table, specify the universe. HSN < 7777 and RESULT_OF_VISIT = 1 29 HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
  • 30. V.2 CSPro Tabulation Application 14. Next, click the dropdown under the Table (Subtables): and select SYSTEM_TOTAL by INDICATOR. 15. Then, specify the corresponding codes below: Value Tallied: I04_TOTAL_FOOD_CONSUMPTION / count(SECTION_A_TO_E where A02_RELATION_TO_HH_HEAD in 1:23) Tab Logic: INDICATOR = 2; PostCalc: TABLE1[*,1] = (TABLE1[*,1] / TABLE1[*,0]) / 52; 30 HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
  • 31. V.2 CSPro Tabulation Application 16. Next, click the dropdown under the Table (Subtables): and select SYSTEM_TOTAL by HOUSEHOLD. 17. Then, specify the TabLogic. HOUSEHOLD = 1; 31 HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
  • 32. V.2 CSPro Tabulation Application 32 HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
  • 33. V.2 CSPro Tabulation Application 18. Click to specify area. 19. Select Region to Barangay from the list of Questionnaire Items. 20. Click to add it into the Area Items box and click OK. 33 HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
  • 34. V.2 CSPro Tabulation Application 21. Click to save and to run. 22. Select: sample_data.csdb as <Input Data> RegProvMunBrgy.anm as <Area Names> and click OK. 34 HP-I1 Average per Capita Weekly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022
  • 35. V.2 CSPro Tabulation Application 35 EXERCISE 12 Tabulate: HP-I2. Average per Capita Monthly Food Consumption Expenditure by Barangay: Municipality of Sugpon, 2022