Laboratory Activity 1: Basic Concepts in Biostatistics
Laboratory Activity 1: Basic Concepts in Biostatistics
SCRIPT WINDOW
Provides the opportunity to write
full-blown programs, in a BASIC-
like language
Coding Data
The variable `dayofwk` is a CODE DAY OF THE WEEK
categorical 1 Sunday
variable. 2 Monday
One way to simplify data entry is to 3 Tuesday
assign numbers or symbols to 4 Wednesday
represent responses. 5 Thursday
6 Friday
7 Saturday
HOW TO ENTER QUALITATIVE DATA?
1. Open a new Data Editor window
2. From the menus choose: File / New / Data
1. Click on Measure
2. A down arrow will appear which will allow
you to choose the scale of measurement
whether Scale, Ordinal or Nominal
3. Click on the down arrow, choose Nominal
4. Enter data values
HOW TO ENTER QUALITATIVE DATA?
Go back to the data window and toggle the
button for the value labels. Value label
button
https://www.guru99.com/introduction-to-microsoft-excel.html
➢contains a number of
columns and rows,
where each intersection
of a column and a row
is a “cell
Why should I learn Microsoft
Excel?
https://www.guru99.com/introduction-to-microsoft-excel.html
➢Excel is convenient for data entry, and for quickly
manipulating rows and columns prior to statistical
analysis.
Understanding the Ribbon
https://www.guru99.com/introduction-to-microsoft-excel.html
➢Ribbon start button - used to access commands
i.e. creating new documents, saving existing work, printing
Understanding the Ribbon
https://www.guru99.com/introduction-to-microsoft-excel.html
➢Ribbon tabs – the tabs are used to group similar commands together.
➢The home tab is used for basic commands such as formatting the data to
make it more presentable, sorting and finding specific data within the
spreadsheet.
Understanding the Ribbon
https://www.guru99.com/introduction-to-microsoft-excel.html
➢Ribbon bar – the bars are used to group similar commands together.
➢ As an example, the Alignment ribbon bar is used to group all the commands that are used
to align data together.
https://www.guru99.com/introduction-to-microsoft-excel.html
BUTTON
SAVE
https://www.guru99.com/introduction-to-microsoft-excel.html
BUTTON
ctrl + x
CUT
https://www.guru99.com/introduction-to-microsoft-excel.html
BUTTON
ctrl + c
COPY
https://www.guru99.com/introduction-to-microsoft-excel.html
BUTTON
ctrl + v
PASTE
Vertical
columns are
labelled with
alphabetic
values such
as A, B, C and
so on.
https://www.guru99.com/introduction-to-microsoft-excel.html
https://www.guru99.com/introduction-to-microsoft-excel.html
Horizontal rows are
labelled with
numeric values
such as 1, 2, 3 and
so on.
https://www.guru99.com/introduction-to-microsoft-excel.html
CELL
Changing the format display of text in a cell
Step 1:
https://www.techonthenet.com/excel/cells/format2016.php
Select the
cell/cells you
wish to
format
Changing the format display of text in a cell
Step 2:
https://www.techonthenet.com/excel/cells/format2016.php
Right-click and
then select "Format
Cells" from the
popup menu.
Changing the format display of text in a cell
When the Format Cells window
appears, select the Number tab.
https://www.techonthenet.com/excel/cells/format2016.php
appear on the right portion of
the window based on the format
that you've selected.
https://www.techonthenet.com/excel/cells/format2016.php
decimal places.
➢When sorting data, it's important to first decide if you want the
sort to apply to the entire worksheet or just a cell range.
➢Sort sheet organizes all the data in your worksheet by one column.
Related information across each row is kept together when the sort
is applied.
➢Sort range sorts the data in a range of cells, which can be helpful
when working with a sheet that contains several tables. Sorting a
range will not affect other content on the worksheet.
https://edu.gcfglobal.org/en/excel2016/sorting-data/1/
Select a cell in the column you want to
sort by. In our example, we'll select cell
C2.
➢ Select the Data tab on the
Ribbon
https://edu.gcfglobal.org/en/excel2016/sorting-data/1/
sort Z to A.
https://edu.gcfglobal.org/en/excel2016/sorting-data/1/
➢ Select the Data tab on the
Ribbon
➢ Then click the Sort
command.
➢ Decide the sorting
order (either
ascending or
descending).
➢ In our example,
we'll use Largest
to Smallest.
https://edu.gcfglobal.org/en/excel2016/sorting-data/1/
➢ The Sort dialog box will appear.
➢ Choose the column you want to sort by.
➢ In our example, we want to sort the data by the
number of T-shirt orders, so we'll select Orders.
https://edu.gcfglobal.org/en/excel2016/sorting-data/1/
➢ Once you're satisfied with your selection, click OK.
https://edu.gcfglobal.org/en/excel2016/sorting-data/1/
➢ The cell range will be sorted by the selected
column. In our example, the Orders column will
be sorted from highest to lowest.
https://edu.gcfglobal.org/en/excel2016/sorting-data/1/
➢Even a small typo could cause problems when sorting
a large worksheet.
https://edu.gcfglobal.org/en/excel2016/sorting-data/1/
➢ Select a cell in the column you want to sort by. In our
example, we'll select cell D2.
https://edu.gcfglobal.org/en/excel2016/sorting-data/1/
➢ Select the Data tab, then click the Sort command.
https://edu.gcfglobal.org/en/excel2016/sorting-data/1/
➢ The Sort dialog box will appear.
➢ Select the column you want to sort by, then choose
Custom List... from the Order field.
➢ Then Click OK
https://edu.gcfglobal.org/en/excel2016/sorting-data/1/
Type the new list
➢SUMMATION
➢COUNT
➢MEAN/AVERAGE
➢MEDIAN
https://www.guru99.com/introduction-to-microsoft-excel.html
➢MODE
➢VARIANCE
➢STANDARD DEVIATION
https://www.guru99.com/introduction-to-microsoft-
excel.html%
SUMMATION
COUNT
https://support.office.com/en-gb/article/count-function-a59cd7fc-b623-4d93-87a4-d23bf411294c
➢ The COUNT function counts
the number of cells that
contain numbers, and counts
numbers within the list of
arguments.
https://exceljet.net/excel-functions/excel-median-function
➢ The MEDIAN function returns the median (middle number) in a
group of supplied numbers
MODE
https://exceljet.net/excel-functions/excel-median-function
➢ The Excel MODE function returns the most frequently
occurring number in a numeric data set.
VARIANCE
https://exceljet.net/excel-functions/excel-var-function
➢The Excel VAR function estimates the variance of a sample of data.
➢If data represents the entire population, use the VARP function or the
newer VAR.P function.
➢VAR ignores text values and logicals in references.
https://exceljet.net/excel-functions/excel-var-function
STANDARD DEVIATION
Workboook vs Worksheet
➢Workbook is a collection of worksheets.
➢Worksheet is a collection of rows and columns.
https://www.guru99.com/introduction-to-microsoft-excel.html
Worksheet
Workbook
Rename Worksheet
https://www.guru99.com/introduction-to-microsoft-excel.html
➢You can rename the sheet
names to more meaningful
names
https://www.guru99.com/introduction-to-microsoft-excel.html
LABORATORY ACTIVITY 1
BASIC CONCEPTS IN BIOSTATISTICS
Module 1:
Laboratory
Definition of Terms
DATA
• Is collected to obtain information
• It is comprised of observations on one or more variables.
• Is collected from a sample of individuals which represents a population of interest
VARIABLE
• Numerical characteristic or attribute associated with the population being studied
EXAMPLE: Basic clinical and demographic information on patients with a particular illness
variables may include: sex, age and height of the patients
AUGUST 2021
CATEGORICAL
(QUALITATIVE DATA)
1 NOMINAL
2 ORDINAL
CATEGORICAL (QUALITATIVE
DATA)
NOMINAL
1 • categories are not ordered but simply have names
EXAMPLE: marital status (married/single/widowed, etc.)
ORDINAL
2 • categories are ordered in some way
EXAMPLE: disease staging systems (advanced, moderate, mild, none)
and degree of pain (severe, moderate, mild, none)
AUGUST 2021
NUMERICAL
(QUANTITATIVE DATA)
1 DISCRETE
2 CONTINUOUS
NUMERICAL (QUANTITATIVE
DATA)
DISCRETE
1 • obtained by “counting”
• when the variable can only take certain numerical values
EXAMPLE: Number of asthma attacks of Px A over the last 5 years
CONTINUOUS
2 • there is no limitation on the values that the variable can take
• obtained by “measuring”
EXAMPLE: weight/height
MODULE 1 AUGUST 2021
Module 1:
Laboratory
SCALES OF MEASUREMENT
NOMINAL SCALE
• classifies elements into two or more categories
• numbers indicating that elements are different; not according to order or magnitude
EXAMPLE: Religion (Roman Catholic, Christian, Buddhist, etc)
ORDINAL SCALE
• Ranks individuals in terms of degree to which they possess a characteristic interest
EXAMPLE: Anxiety level
SCALES OF MEASUREMENT
INTERVAL SCALE
• unit of measurement is arbitrary and there is no “true zero” point
EXAMPLE: Temperature of COVID positive patients
RATIO SCALE
• similar with interval, but has “absolute zero” in the scale
EXAMPLE: Volume of reagent A used in an experiment
MODULE 1 AUGUST 2021
Module 1:
Laboratory
REASONS FOR SAMPLING
SLOVIN’S FORMULA is
used.
where:
n = sample
N = population
1 = constant
e = sampling error
Sampling – Example 1
n = 10,000
10,000(0.02)2 + 1
n = 10,000
10,000(0.0004) + 1
n = 10,000
4+ 1
n = 2,000
A TB researcher wanted to conduct a survey on TB in
Jamindan, Capiz. The size of the population is 2,000. Find
the sample size with 97% confidence level.
STEM 220
𝑛
𝑥 𝑁𝐼
𝑁
HUMMS 320
TVL-HE 400
N = 1900 n = 330