Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .quarto/_freeze/chap1/execute-results/html.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .quarto/idx/chap1.qmd.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .quarto/idx/index.qmd.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"title":"Introduction","markdown":{"headingText":"Introduction","containsRefs":false,"markdown":"\nWelcome to the census microdata activity - R code. This page provides the R code used in the module activity.\n\n## What you will find in this page\n\n- An introduction to the census microdata activity\n- A chapter containing the full R code used for analysis\n\n## Requirements\n\nTo use the code in this page, you will need:\n\n- R and RStudio installed on your computer\n- The required R packages installed\n- Download the teaching dataset: [2021 census microdata open access, England and Wales](https://datacatalogue.ukdataservice.ac.uk/studies/study/9202#!/access-data)\n\n## Data access and file location\n\nIn this code, the dataset is referenced using the following relative path: **data/publicmicrodatateachingsample.sav**\n\nPlease, update this file path in your code accordingly so that R can locate the dataset file on your computer.\n\n## How to use this page\n\nNavigate to Chapter 1 to view the complete R script. At this stage, the code is displayed for reference and can be copied but does not run within the page.\n\n\n","srcMarkdownNoYaml":""},"formats":{"html":{"identifier":{"display-name":"HTML","target-format":"html","base-format":"html"},"execute":{"fig-width":7,"fig-height":5,"fig-format":"retina","fig-dpi":96,"df-print":"default","error":false,"eval":false,"cache":null,"freeze":false,"echo":true,"output":true,"warning":false,"include":true,"keep-md":false,"keep-ipynb":false,"ipynb":null,"enabled":null,"daemon":null,"daemon-restart":false,"debug":false,"ipynb-filters":[],"ipynb-shell-interactivity":null,"plotly-connected":true,"message":false,"engine":"markdown"},"render":{"keep-tex":false,"keep-typ":false,"keep-source":false,"keep-hidden":false,"prefer-html":false,"output-divs":true,"output-ext":"html","fig-align":"default","fig-pos":null,"fig-env":null,"code-fold":false,"code-overflow":"scroll","code-link":false,"code-line-numbers":true,"code-tools":{"source":true,"toggle":false,"caption":"Quarto source"},"tbl-colwidths":"auto","merge-includes":true,"inline-includes":false,"preserve-yaml":false,"latex-auto-mk":true,"latex-auto-install":true,"latex-clean":true,"latex-min-runs":1,"latex-max-runs":10,"latex-makeindex":"makeindex","latex-makeindex-opts":[],"latex-tlmgr-opts":[],"latex-input-paths":[],"latex-output-dir":null,"link-external-icon":false,"link-external-newwindow":true,"self-contained-math":false,"format-resources":[],"notebook-links":true},"pandoc":{"standalone":true,"wrap":"none","default-image-extension":"png","to":"html","css":["ukds_long.css"],"toc":true,"toc-depth":2,"number-sections":false,"highlight-style":"arrow-light","output-file":"index.html"},"language":{"toc-title-document":"Table of contents","toc-title-website":"On this page","related-formats-title":"Other Formats","related-notebooks-title":"Notebooks","source-notebooks-prefix":"Source","other-links-title":"Other Links","code-links-title":"Code Links","launch-dev-container-title":"Launch Dev Container","launch-binder-title":"Launch Binder","article-notebook-label":"Article Notebook","notebook-preview-download":"Download Notebook","notebook-preview-download-src":"Download Source","notebook-preview-back":"Back to Article","manuscript-meca-bundle":"MECA Bundle","section-title-abstract":"Abstract","section-title-appendices":"Appendices","section-title-footnotes":"Footnotes","section-title-references":"References","section-title-reuse":"Reuse","section-title-copyright":"Copyright","section-title-citation":"Citation","appendix-attribution-cite-as":"For attribution, please cite this work as:","appendix-attribution-bibtex":"BibTeX citation:","appendix-view-license":"View License","title-block-author-single":"Author","title-block-author-plural":"Authors","title-block-affiliation-single":"Affiliation","title-block-affiliation-plural":"Affiliations","title-block-published":"Published","title-block-modified":"Modified","title-block-keywords":"Keywords","callout-tip-title":"Tip","callout-note-title":"Note","callout-warning-title":"Warning","callout-important-title":"Important","callout-caution-title":"Caution","code-summary":"Code","code-tools-menu-caption":"Code","code-tools-show-all-code":"Show All Code","code-tools-hide-all-code":"Hide All Code","code-tools-view-source":"View Source","code-tools-source-code":"Source Code","tools-share":"Share","tools-download":"Download","code-line":"Line","code-lines":"Lines","copy-button-tooltip":"Copy to Clipboard","copy-button-tooltip-success":"Copied!","repo-action-links-edit":"Edit this page","repo-action-links-source":"View source","repo-action-links-issue":"Report an issue","back-to-top":"Back to top","search-no-results-text":"No results","search-matching-documents-text":"matching documents","search-copy-link-title":"Copy link to search","search-hide-matches-text":"Hide additional matches","search-more-match-text":"more match in this document","search-more-matches-text":"more matches in this document","search-clear-button-title":"Clear","search-text-placeholder":"","search-detached-cancel-button-title":"Cancel","search-submit-button-title":"Submit","search-label":"Search","toggle-section":"Toggle section","toggle-sidebar":"Toggle sidebar navigation","toggle-dark-mode":"Toggle dark mode","toggle-reader-mode":"Toggle reader mode","toggle-navigation":"Toggle navigation","crossref-fig-title":"Figure","crossref-tbl-title":"Table","crossref-lst-title":"Listing","crossref-thm-title":"Theorem","crossref-lem-title":"Lemma","crossref-cor-title":"Corollary","crossref-prp-title":"Proposition","crossref-cnj-title":"Conjecture","crossref-def-title":"Definition","crossref-exm-title":"Example","crossref-exr-title":"Exercise","crossref-ch-prefix":"Chapter","crossref-apx-prefix":"Appendix","crossref-sec-prefix":"Section","crossref-eq-prefix":"Equation","crossref-lof-title":"List of Figures","crossref-lot-title":"List of Tables","crossref-lol-title":"List of Listings","environment-proof-title":"Proof","environment-remark-title":"Remark","environment-solution-title":"Solution","listing-page-order-by":"Order By","listing-page-order-by-default":"Default","listing-page-order-by-date-asc":"Oldest","listing-page-order-by-date-desc":"Newest","listing-page-order-by-number-desc":"High to Low","listing-page-order-by-number-asc":"Low to High","listing-page-field-date":"Date","listing-page-field-title":"Title","listing-page-field-description":"Description","listing-page-field-author":"Author","listing-page-field-filename":"File Name","listing-page-field-filemodified":"Modified","listing-page-field-subtitle":"Subtitle","listing-page-field-readingtime":"Reading Time","listing-page-field-wordcount":"Word Count","listing-page-field-categories":"Categories","listing-page-minutes-compact":"{0} min","listing-page-category-all":"All","listing-page-no-matches":"No matching items","listing-page-words":"{0} words","listing-page-filter":"Filter","draft":"Draft"},"metadata":{"lang":"en","fig-responsive":true,"quarto-version":"1.8.25","jupyter":"nbstata","toc-location":"right","fig-cap-location":"top","tbl-cap-location":"top","smooth-scroll":true,"page-layout":"full","citations-hover":true,"footnotes-hover":true},"extensions":{"book":{"multiFile":true}}}},"projectFormats":["html"]}
{"title":"Introduction","markdown":{"headingText":"Introduction","containsRefs":false,"markdown":"\nWelcome to the census microdata activity - R code. This page provides the R code used in the module activity.\n\n## What you will find in this page\n\n- An introduction to the census microdata activity\n- A chapter containing the full R code used for analysis\n\n## Requirements\n\nTo use the code in this page, you will need:\n\n- R and RStudio installed on your computer\n- The required R packages installed\n- Download the teaching dataset: [2021 census microdata open access, England and Wales](https://datacatalogue.ukdataservice.ac.uk/studies/study/9202#!/access-data)\n\n## Data access and file location\n\nIn this code, the dataset is referenced using the following relative path: **data/publicmicrodatateachingsample.sav**\n\nPlease, update this file path in your code accordingly so that R can locate the dataset file on your computer.\n\n## How to use this page\n\nNavigate to Chapter 1 to view the complete R script. At this stage, the code is displayed for reference and can be copied but does not run within the page.\n\n\n","srcMarkdownNoYaml":""},"formats":{"html":{"identifier":{"display-name":"HTML","target-format":"html","base-format":"html"},"execute":{"fig-width":7,"fig-height":5,"fig-format":"retina","fig-dpi":96,"df-print":"default","error":false,"eval":true,"cache":null,"freeze":false,"echo":true,"output":true,"warning":false,"include":true,"keep-md":false,"keep-ipynb":false,"ipynb":null,"enabled":null,"daemon":null,"daemon-restart":false,"debug":false,"ipynb-filters":[],"ipynb-shell-interactivity":null,"plotly-connected":true,"message":false,"engine":"markdown"},"render":{"keep-tex":false,"keep-typ":false,"keep-source":false,"keep-hidden":false,"prefer-html":false,"output-divs":true,"output-ext":"html","fig-align":"default","fig-pos":null,"fig-env":null,"code-fold":false,"code-overflow":"scroll","code-link":false,"code-line-numbers":true,"code-tools":{"source":true,"toggle":false,"caption":"Quarto source"},"tbl-colwidths":"auto","merge-includes":true,"inline-includes":false,"preserve-yaml":false,"latex-auto-mk":true,"latex-auto-install":true,"latex-clean":true,"latex-min-runs":1,"latex-max-runs":10,"latex-makeindex":"makeindex","latex-makeindex-opts":[],"latex-tlmgr-opts":[],"latex-input-paths":[],"latex-output-dir":null,"link-external-icon":false,"link-external-newwindow":true,"self-contained-math":false,"format-resources":[],"notebook-links":true},"pandoc":{"standalone":true,"wrap":"none","default-image-extension":"png","to":"html","css":["ukds_long.css"],"toc":true,"toc-depth":2,"number-sections":false,"highlight-style":"arrow-light","output-file":"index.html"},"language":{"toc-title-document":"Table of contents","toc-title-website":"On this page","related-formats-title":"Other Formats","related-notebooks-title":"Notebooks","source-notebooks-prefix":"Source","other-links-title":"Other Links","code-links-title":"Code Links","launch-dev-container-title":"Launch Dev Container","launch-binder-title":"Launch Binder","article-notebook-label":"Article Notebook","notebook-preview-download":"Download Notebook","notebook-preview-download-src":"Download Source","notebook-preview-back":"Back to Article","manuscript-meca-bundle":"MECA Bundle","section-title-abstract":"Abstract","section-title-appendices":"Appendices","section-title-footnotes":"Footnotes","section-title-references":"References","section-title-reuse":"Reuse","section-title-copyright":"Copyright","section-title-citation":"Citation","appendix-attribution-cite-as":"For attribution, please cite this work as:","appendix-attribution-bibtex":"BibTeX citation:","appendix-view-license":"View License","title-block-author-single":"Author","title-block-author-plural":"Authors","title-block-affiliation-single":"Affiliation","title-block-affiliation-plural":"Affiliations","title-block-published":"Published","title-block-modified":"Modified","title-block-keywords":"Keywords","callout-tip-title":"Tip","callout-note-title":"Note","callout-warning-title":"Warning","callout-important-title":"Important","callout-caution-title":"Caution","code-summary":"Code","code-tools-menu-caption":"Code","code-tools-show-all-code":"Show All Code","code-tools-hide-all-code":"Hide All Code","code-tools-view-source":"View Source","code-tools-source-code":"Source Code","tools-share":"Share","tools-download":"Download","code-line":"Line","code-lines":"Lines","copy-button-tooltip":"Copy to Clipboard","copy-button-tooltip-success":"Copied!","repo-action-links-edit":"Edit this page","repo-action-links-source":"View source","repo-action-links-issue":"Report an issue","back-to-top":"Back to top","search-no-results-text":"No results","search-matching-documents-text":"matching documents","search-copy-link-title":"Copy link to search","search-hide-matches-text":"Hide additional matches","search-more-match-text":"more match in this document","search-more-matches-text":"more matches in this document","search-clear-button-title":"Clear","search-text-placeholder":"","search-detached-cancel-button-title":"Cancel","search-submit-button-title":"Submit","search-label":"Search","toggle-section":"Toggle section","toggle-sidebar":"Toggle sidebar navigation","toggle-dark-mode":"Toggle dark mode","toggle-reader-mode":"Toggle reader mode","toggle-navigation":"Toggle navigation","crossref-fig-title":"Figure","crossref-tbl-title":"Table","crossref-lst-title":"Listing","crossref-thm-title":"Theorem","crossref-lem-title":"Lemma","crossref-cor-title":"Corollary","crossref-prp-title":"Proposition","crossref-cnj-title":"Conjecture","crossref-def-title":"Definition","crossref-exm-title":"Example","crossref-exr-title":"Exercise","crossref-ch-prefix":"Chapter","crossref-apx-prefix":"Appendix","crossref-sec-prefix":"Section","crossref-eq-prefix":"Equation","crossref-lof-title":"List of Figures","crossref-lot-title":"List of Tables","crossref-lol-title":"List of Listings","environment-proof-title":"Proof","environment-remark-title":"Remark","environment-solution-title":"Solution","listing-page-order-by":"Order By","listing-page-order-by-default":"Default","listing-page-order-by-date-asc":"Oldest","listing-page-order-by-date-desc":"Newest","listing-page-order-by-number-desc":"High to Low","listing-page-order-by-number-asc":"Low to High","listing-page-field-date":"Date","listing-page-field-title":"Title","listing-page-field-description":"Description","listing-page-field-author":"Author","listing-page-field-filename":"File Name","listing-page-field-filemodified":"Modified","listing-page-field-subtitle":"Subtitle","listing-page-field-readingtime":"Reading Time","listing-page-field-wordcount":"Word Count","listing-page-field-categories":"Categories","listing-page-minutes-compact":"{0} min","listing-page-category-all":"All","listing-page-no-matches":"No matching items","listing-page-words":"{0} words","listing-page-filter":"Filter","draft":"Draft"},"metadata":{"lang":"en","fig-responsive":true,"quarto-version":"1.8.27","jupyter":"nbstata","toc-location":"right","fig-cap-location":"top","tbl-cap-location":"top","smooth-scroll":true,"page-layout":"full","citations-hover":true,"footnotes-hover":true},"extensions":{"book":{"multiFile":true}}}},"projectFormats":["html"]}
Binary file modified .quarto/project-cache/deno-kv-file
Binary file not shown.
Binary file removed .quarto/project-cache/deno-kv-file-shm
Binary file not shown.
Empty file.
2 changes: 1 addition & 1 deletion .quarto/xref/24ad0713
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"entries":[],"headings":["install-and-load-the-main-packages","install-packages","load-packages","load-the-dataset-and-make-a-copy","drop-unnecessary-variables","exploratory-analysis","univariate-analysis","univariate-analysis-for-health-in-general-and-hours-worked","frequencies-for-health-in-general-and-hours-worked","percentages-for-health-in-general-and-hours-worked","frequencies-and-percentages-with-labels-for-health-in-general-and-hours-worked","a-pie-chart-for-health-in-general","a.1-create-a-labelled-health-variable","a.2-plot-pie-chart","b-pie-chart-for-hours-worked","b.1-create-a-labelled-hours-worked-variable","b.2-plot-pie-chart","transformation-of-variable-health-in-general","drop-rows-where-health_in_general--8-does-not-apply","check-the-new-variables-distribution","create-variable-poor_health-and-check-its-distribution","univariate-analysis-for-age-sex-ethnicity-social-category","frequencies-and-percentages-for-age-sex-ethnicity-social-category","plot-pie-chart-age-variable","a-create-a-labelled-age-variable","b-plot-pie-chart","histogram-for-sex-variable","a-recode-sex-variable-with-labels","b-plot-histogram","histogram-for-ethnicity-variable","a-recode-ethnicity-variable-with-labels","b-plot-histogram-1","pie-chart-for-variable-social-class","a-create-a-labelled-social-class-variable","b-plot-pie-chart-1","drop-under-16-from-the-table","bivariate-analysis","cross-tabulation-of-poor_health-by-hours-worked","row-percentages","column-percentages","chi-square-test","a-creating-cross-tabulations-to-be-tested","b-chi-square-test-on-health-and-our-5-other-variables","regression-model","recode-variables-as-factors-with-labels","pick-references-that-are-central-or-policy-relevant","fit-logistic-regression","obtain-summary-results-of-the-logistic-regression"],"options":{"chapters":true}}
{"entries":[],"headings":["install-and-load-the-main-packages","load-the-dataset-and-make-a-copy","drop-unnecessary-variables","exploratory-analysis","univariate-analysis","univariate-analysis-for-health-in-general-and-hours-worked","frequencies-for-health-in-general-and-hours-worked","distribution-of-self-rated-health-and-hours-worked","frequencies-and-percentages-with-labels-for-health-in-general-and-hours-worked","a-pie-chart-for-self-rated-general-health","b-pie-chart-for-hours-worked","b.1-create-a-labelled-hours-worked-variable","transformation-of-variable-health-in-general","drop-rows-where-health_in_general--8-does-not-apply","check-the-new-variables-distribution","create-variable-poor_health-and-check-its-distribution","univariate-analysis-for-age-sex-ethnicity-social-category","frequencies-and-percentages-for-age-sex-ethnicity-social-category","plot-pie-chart-age-variable","pie-chart-for-sex-variable","histogram-for-ethnicity-variable","a-recode-ethnicity-variable-with-labels","b-plot-histogram","pie-chart-for-variable-social-class","a-create-a-labelled-social-class-variable","b-plot-pie-chart","drop-under-16-from-the-table","bivariate-analysis","cross-tabulation-of-poor_health-by-hours-worked","row-percentages","column-percentages","chi-square-test","a-creating-cross-tabulations-to-be-tested","b-chi-square-test-on-health-and-our-5-other-variables","regression-model","recode-variables-as-factors-with-labels","pick-references-that-are-central-or-policy-relevant","fit-logistic-regression","obtain-summary-results-of-the-logistic-regression"],"options":{"chapters":true}}
2 changes: 1 addition & 1 deletion _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project:

### Code execution options
execute: ### How R code is going to be interpreted
eval: false
eval: true
echo: true ### These can be changed for individual code blocks
warning: false
message: false
Expand Down
Loading