Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Census2022
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SERG
Census2022
Commits
85006138
Commit
85006138
authored
10 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
added floor area re-coding
parent
2ddfffd1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CER-data-processing.do
+21
-0
21 additions, 0 deletions
CER-data-processing.do
with
21 additions
and
0 deletions
CER-data-processing.do
+
21
−
0
View file @
85006138
...
@@ -107,6 +107,27 @@ replace ba_income = . if Question404CanIjustdoublec == "2"
...
@@ -107,6 +107,27 @@ replace ba_income = . if Question404CanIjustdoublec == "2"
tab
ba_income
Question404CanIjustdoublec
,
mi
tab
ba_income
Question404CanIjustdoublec
,
mi
tab
ba_income
Question403Isthatfigure
,
mi
tab
ba_income
Question403Isthatfigure
,
mi
*********
* floor area
su
Question6103Whatistheapprox
,
de
* max value = 999999999 = missing value!
* in sq feet or sq metres?
* use this to filter out missing
lab
def
Question61031Isthat
1
"sq m"
2
"sq feet"
destring
Question61031Isthat
,
force
generate
(
ds_Question61031Isthat
)
lab
val
ds_Question61031Isthat
Question61031Isthat
tab
ds_Question61031Isthat
* lots missing!
* most people answered in sq feet so keep that way
gen
ba_floorarea
=
Question6103Whatistheapprox
if
ds_Question61031Isthat
==
2
* 1 square metre = 10.7639104 sq feet
replace
ba_floorarea
=
Question6103Whatistheapprox
*
10.76
if
ds_Question61031Isthat
==
1
* the large numbers tend to be sq metres?
tabstat
Question6103Whatistheapprox
ba_floorarea
,
by
(
Question61031Isthat
)
s
(
mean
n
)
*********
*********
* n adults
* n adults
* NB this was asked if not living alone so 0 'others' = missing
* NB this was asked if not living alone so 0 'others' = missing
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment