├── .gitignore ├── .quartoignore ├── LICENSE ├── README.md ├── README.qmd ├── _extensions └── report │ ├── AACSB.png │ ├── AMBA.png │ ├── EQUIS.png │ ├── MBSportrait.jpg │ ├── _extension.yml │ ├── before-title.tex │ ├── monash2.png │ └── title.tex ├── examples ├── template.pdf └── template.png ├── monash-quarto-report.Rproj ├── references.bib └── template.qmd /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | template_files/ 3 | template.tex 4 | .Rproj.user 5 | .quarto/ 6 | -------------------------------------------------------------------------------- /.quartoignore: -------------------------------------------------------------------------------- 1 | # Quarto automatically excludes common GitHub files 2 | # You can add files here that should be excluded when the template 3 | # is used in a directory. 4 | examples 5 | *.Rproj 6 | README.qmd 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Creative Commons Legal Code 2 | 3 | CC0 1.0 Universal 4 | 5 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE 6 | LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN 7 | ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS 8 | INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES 9 | REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS 10 | PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM 11 | THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED 12 | HEREUNDER. 13 | 14 | Statement of Purpose 15 | 16 | The laws of most jurisdictions throughout the world automatically confer 17 | exclusive Copyright and Related Rights (defined below) upon the creator 18 | and subsequent owner(s) (each and all, an "owner") of an original work of 19 | authorship and/or a database (each, a "Work"). 20 | 21 | Certain owners wish to permanently relinquish those rights to a Work for 22 | the purpose of contributing to a commons of creative, cultural and 23 | scientific works ("Commons") that the public can reliably and without fear 24 | of later claims of infringement build upon, modify, incorporate in other 25 | works, reuse and redistribute as freely as possible in any form whatsoever 26 | and for any purposes, including without limitation commercial purposes. 27 | These owners may contribute to the Commons to promote the ideal of a free 28 | culture and the further production of creative, cultural and scientific 29 | works, or to gain reputation or greater distribution for their Work in 30 | part through the use and efforts of others. 31 | 32 | For these and/or other purposes and motivations, and without any 33 | expectation of additional consideration or compensation, the person 34 | associating CC0 with a Work (the "Affirmer"), to the extent that he or she 35 | is an owner of Copyright and Related Rights in the Work, voluntarily 36 | elects to apply CC0 to the Work and publicly distribute the Work under its 37 | terms, with knowledge of his or her Copyright and Related Rights in the 38 | Work and the meaning and intended legal effect of CC0 on those rights. 39 | 40 | 1. Copyright and Related Rights. A Work made available under CC0 may be 41 | protected by copyright and related or neighboring rights ("Copyright and 42 | Related Rights"). Copyright and Related Rights include, but are not 43 | limited to, the following: 44 | 45 | i. the right to reproduce, adapt, distribute, perform, display, 46 | communicate, and translate a Work; 47 | ii. moral rights retained by the original author(s) and/or performer(s); 48 | iii. publicity and privacy rights pertaining to a person's image or 49 | likeness depicted in a Work; 50 | iv. rights protecting against unfair competition in regards to a Work, 51 | subject to the limitations in paragraph 4(a), below; 52 | v. rights protecting the extraction, dissemination, use and reuse of data 53 | in a Work; 54 | vi. database rights (such as those arising under Directive 96/9/EC of the 55 | European Parliament and of the Council of 11 March 1996 on the legal 56 | protection of databases, and under any national implementation 57 | thereof, including any amended or successor version of such 58 | directive); and 59 | vii. other similar, equivalent or corresponding rights throughout the 60 | world based on applicable law or treaty, and any national 61 | implementations thereof. 62 | 63 | 2. Waiver. To the greatest extent permitted by, but not in contravention 64 | of, applicable law, Affirmer hereby overtly, fully, permanently, 65 | irrevocably and unconditionally waives, abandons, and surrenders all of 66 | Affirmer's Copyright and Related Rights and associated claims and causes 67 | of action, whether now known or unknown (including existing as well as 68 | future claims and causes of action), in the Work (i) in all territories 69 | worldwide, (ii) for the maximum duration provided by applicable law or 70 | treaty (including future time extensions), (iii) in any current or future 71 | medium and for any number of copies, and (iv) for any purpose whatsoever, 72 | including without limitation commercial, advertising or promotional 73 | purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each 74 | member of the public at large and to the detriment of Affirmer's heirs and 75 | successors, fully intending that such Waiver shall not be subject to 76 | revocation, rescission, cancellation, termination, or any other legal or 77 | equitable action to disrupt the quiet enjoyment of the Work by the public 78 | as contemplated by Affirmer's express Statement of Purpose. 79 | 80 | 3. Public License Fallback. Should any part of the Waiver for any reason 81 | be judged legally invalid or ineffective under applicable law, then the 82 | Waiver shall be preserved to the maximum extent permitted taking into 83 | account Affirmer's express Statement of Purpose. In addition, to the 84 | extent the Waiver is so judged Affirmer hereby grants to each affected 85 | person a royalty-free, non transferable, non sublicensable, non exclusive, 86 | irrevocable and unconditional license to exercise Affirmer's Copyright and 87 | Related Rights in the Work (i) in all territories worldwide, (ii) for the 88 | maximum duration provided by applicable law or treaty (including future 89 | time extensions), (iii) in any current or future medium and for any number 90 | of copies, and (iv) for any purpose whatsoever, including without 91 | limitation commercial, advertising or promotional purposes (the 92 | "License"). The License shall be deemed effective as of the date CC0 was 93 | applied by Affirmer to the Work. Should any part of the License for any 94 | reason be judged legally invalid or ineffective under applicable law, such 95 | partial invalidity or ineffectiveness shall not invalidate the remainder 96 | of the License, and in such case Affirmer hereby affirms that he or she 97 | will not (i) exercise any of his or her remaining Copyright and Related 98 | Rights in the Work or (ii) assert any associated claims and causes of 99 | action with respect to the Work, in either case contrary to Affirmer's 100 | express Statement of Purpose. 101 | 102 | 4. Limitations and Disclaimers. 103 | 104 | a. No trademark or patent rights held by Affirmer are waived, abandoned, 105 | surrendered, licensed or otherwise affected by this document. 106 | b. Affirmer offers the Work as-is and makes no representations or 107 | warranties of any kind concerning the Work, express, implied, 108 | statutory or otherwise, including without limitation warranties of 109 | title, merchantability, fitness for a particular purpose, non 110 | infringement, or the absence of latent or other defects, accuracy, or 111 | the present or absence of errors, whether or not discoverable, all to 112 | the greatest extent permissible under applicable law. 113 | c. Affirmer disclaims responsibility for clearing rights of other persons 114 | that may apply to the Work or any use thereof, including without 115 | limitation any person's Copyright and Related Rights in the Work. 116 | Further, Affirmer disclaims responsibility for obtaining any necessary 117 | consents, permissions or other rights required for any use of the 118 | Work. 119 | d. Affirmer understands and acknowledges that Creative Commons is not a 120 | party to this document and has no duty or obligation with respect to 121 | this CC0 or use of the Work. 122 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | # Monash Report Format Template 6 | 7 | This is a Quarto template that assists you in creating a Monash 8 | University report. 9 | 10 | ## Creating a new report 11 | 12 | You can use this as a template to create a report. To do this, use the 13 | following command: 14 | 15 | ``` bash 16 | quarto use template quarto-monash/report 17 | ``` 18 | 19 | This will install the extension and create an example qmd file that you 20 | can use as a starting place for your report. 21 | 22 | ## Installation for existing document 23 | 24 | You may also use this format with an existing Quarto project or 25 | document. From the quarto project or document directory, run the 26 | following command to install this format: 27 | 28 | ``` bash 29 | quarto install extension quarto-monash/report 30 | ``` 31 | 32 | ## Example 33 | 34 | [![](examples/template.png)](examples/template.pdf) 35 | -------------------------------------------------------------------------------- /README.qmd: -------------------------------------------------------------------------------- 1 | --- 2 | format: gfm 3 | --- 4 | 5 | 6 | 7 | ```{r} 8 | #| include: false 9 | # Create pdf and png version of template 10 | library(tidyverse) 11 | library(quarto) 12 | library(magick) 13 | 14 | # Render template 15 | quarto_render(input = "template.qmd") 16 | fs::file_delete(c("AACSB.png","AMBA.png","EQUIS.png","MBSportrait.jpg","monash2.png")) 17 | # Convert rendered PDF to PNG 18 | image_read_pdf("template.pdf", pages = 1) |> 19 | image_montage(geometry = "x2000+25+35", tile = "1", bg = "grey92", shadow = TRUE) |> 20 | image_convert(format = "png") |> 21 | image_write("examples/template.png") 22 | # Move pdf to examples folder 23 | fs::file_move("template.pdf", "examples/template.pdf") 24 | ``` 25 | 26 | # Monash Report Format Template 27 | 28 | This is a Quarto template that assists you in creating a Monash University report. 29 | 30 | ## Creating a new report 31 | 32 | You can use this as a template to create a report. 33 | To do this, use the following command: 34 | 35 | ```bash 36 | quarto use template quarto-monash/report 37 | ``` 38 | 39 | This will install the extension and create an example qmd file that you can use as a starting place for your report. 40 | 41 | ## Installation for existing document 42 | 43 | You may also use this format with an existing Quarto project or document. 44 | From the quarto project or document directory, run the following command to install this format: 45 | 46 | ```bash 47 | quarto install extension quarto-monash/report 48 | ``` 49 | 50 | ## Example 51 | 52 | [![](examples/template.png)](examples/template.pdf) 53 | -------------------------------------------------------------------------------- /_extensions/report/AACSB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quarto-monash/report/940797814a7eaa4cf5352b504f37bec8e79e1922/_extensions/report/AACSB.png -------------------------------------------------------------------------------- /_extensions/report/AMBA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quarto-monash/report/940797814a7eaa4cf5352b504f37bec8e79e1922/_extensions/report/AMBA.png -------------------------------------------------------------------------------- /_extensions/report/EQUIS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quarto-monash/report/940797814a7eaa4cf5352b504f37bec8e79e1922/_extensions/report/EQUIS.png -------------------------------------------------------------------------------- /_extensions/report/MBSportrait.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quarto-monash/report/940797814a7eaa4cf5352b504f37bec8e79e1922/_extensions/report/MBSportrait.jpg -------------------------------------------------------------------------------- /_extensions/report/_extension.yml: -------------------------------------------------------------------------------- 1 | title: Monash Working Paper Format Template 2 | author: Rob J Hyndman 3 | version: 2.0.0 4 | quarto-required: ">= 1.4.0" 5 | contributes: 6 | formats: 7 | pdf: 8 | documentclass: article 9 | papersize: a4 10 | fontsize: 11pt 11 | date: today 12 | date-format: "D MMMM YYYY" 13 | toc: false 14 | pdf-engine: pdflatex 15 | geometry: 16 | - top=2.4cm 17 | - bottom=2.4cm 18 | - left=2.5cm 19 | - right=2.5cm 20 | block-headings: false 21 | cite-method: biblatex 22 | biblio-style: authoryear-comp 23 | colorlinks: true 24 | fig-height: 5 25 | fig-width: 8 26 | number-sections: true 27 | number-depth: 2 28 | linestretch: 1.5 29 | knitr: 30 | opts_chunk: 31 | echo: false 32 | warning: false 33 | message: false 34 | template-partials: 35 | - "before-title.tex" 36 | - "title.tex" 37 | format-resources: 38 | - monash2.png 39 | - MBSportrait.jpg 40 | - EQUIS.png 41 | - AMBA.png 42 | - AACSB.png 43 | -------------------------------------------------------------------------------- /_extensions/report/before-title.tex: -------------------------------------------------------------------------------- 1 | %% CAPTIONS 2 | \usepackage{caption} 3 | \DeclareCaptionStyle{italic}[justification=centering] 4 | {labelfont={bf},textfont={it},labelsep=colon} 5 | \captionsetup[figure]{style=italic,format=hang,singlelinecheck=true} 6 | \captionsetup[table]{style=italic,format=hang,singlelinecheck=true} 7 | 8 | %% FONT 9 | \usepackage{bera} 10 | \usepackage[charter]{mathdesign} 11 | \usepackage[scale=0.9]{sourcecodepro} 12 | \usepackage[lf,t]{FiraSans} 13 | \usepackage{fontawesome} 14 | 15 | %% HEADERS AND FOOTERS 16 | \usepackage{fancyhdr} 17 | \pagestyle{fancy} 18 | \rfoot{\Large\sffamily\raisebox{-0.1cm}{\textbf{\thepage}}} 19 | \makeatletter 20 | \lhead{\textsf{\expandafter{\@title}}} 21 | \makeatother 22 | \rhead{} 23 | \cfoot{} 24 | \setlength{\headheight}{15pt} 25 | \renewcommand{\headrulewidth}{0.4pt} 26 | \renewcommand{\footrulewidth}{0.4pt} 27 | \fancypagestyle{plain}{% 28 | \fancyhf{} % clear all header and footer fields 29 | \fancyfoot[C]{\sffamily\thepage} % except the center 30 | \renewcommand{\headrulewidth}{0pt} 31 | \renewcommand{\footrulewidth}{0pt}} 32 | 33 | %% MATHS 34 | \usepackage{bm,amsmath} 35 | \allowdisplaybreaks 36 | 37 | %% GRAPHICS 38 | \makeatletter 39 | \def\fps@figure{htbp} 40 | \makeatother 41 | \setcounter{topnumber}{2} 42 | \setcounter{bottomnumber}{2} 43 | \setcounter{totalnumber}{4} 44 | \renewcommand{\topfraction}{0.85} 45 | \renewcommand{\bottomfraction}{0.85} 46 | \renewcommand{\textfraction}{0.15} 47 | \renewcommand{\floatpagefraction}{0.8} 48 | 49 | %% SECTION TITLES 50 | \usepackage[compact,sf,bf]{titlesec} 51 | \titleformat*{\section}{\Large\sf\bfseries\color[rgb]{0.7,0,0}} 52 | \titleformat*{\subsection}{\large\sf\bfseries\color[rgb]{0.7,0,0}} 53 | \titleformat*{\subsubsection}{\sf\bfseries\color[rgb]{0.7,0,0}} 54 | \titlespacing{\section}{0pt}{*5}{*1} 55 | \titlespacing{\subsection}{0pt}{*2}{*0.2} 56 | \titlespacing{\subsubsection}{0pt}{*1}{*0.1} 57 | 58 | %% BIBLIOGRAPHY. 59 | 60 | \makeatletter 61 | \@ifpackageloaded{biblatex}{ 62 | \ExecuteBibliographyOptions{bibencoding=utf8,minnames=1,maxnames=3, maxbibnames=99,dashed=false,terseinits=true,giveninits=true,uniquename=false,uniquelist=false,doi=false, isbn=false,url=true,sortcites=false} 63 | \DeclareFieldFormat{url}{\texttt{\url{#1}}} 64 | \DeclareFieldFormat[article]{pages}{#1} 65 | \DeclareFieldFormat[inproceedings]{pages}{\lowercase{pp.}#1} 66 | \DeclareFieldFormat[incollection]{pages}{\lowercase{pp.}#1} 67 | \DeclareFieldFormat[article]{volume}{\mkbibbold{#1}} 68 | \DeclareFieldFormat[article]{number}{\mkbibparens{#1}} 69 | \DeclareFieldFormat[article]{title}{\MakeCapital{#1}} 70 | \DeclareFieldFormat[article]{url}{} 71 | \DeclareFieldFormat[inproceedings]{title}{#1} 72 | \DeclareFieldFormat{shorthandwidth}{#1} 73 | \usepackage{xpatch} 74 | \xpatchbibmacro{volume+number+eid}{\setunit*{\adddot}}{}{}{} 75 | % Remove In: for an article. 76 | \renewbibmacro{in:}{% 77 | \ifentrytype{article}{}{% 78 | \printtext{\bibstring{in}\intitlepunct}}} 79 | \AtEveryBibitem{\clearfield{month}} 80 | \AtEveryCitekey{\clearfield{month}} 81 | \DeclareDelimFormat[cbx@textcite]{nameyeardelim}{\addspace} 82 | \renewcommand*{\finalnamedelim}{\addspace\&\space} 83 | }{} 84 | \makeatother 85 | 86 | %% PAGE BREAKING to avoid widows and orphans 87 | \clubpenalty = 2000 88 | \widowpenalty = 2000 89 | \usepackage{microtype} 90 | -------------------------------------------------------------------------------- /_extensions/report/monash2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quarto-monash/report/940797814a7eaa4cf5352b504f37bec8e79e1922/_extensions/report/monash2.png -------------------------------------------------------------------------------- /_extensions/report/title.tex: -------------------------------------------------------------------------------- 1 | % Placement of logos 2 | 3 | \RequirePackage[absolute,overlay]{textpos} 4 | \setlength{\TPHorizModule}{1cm} 5 | \setlength{\TPVertModule}{1cm} 6 | \def\placefig#1#2#3#4{\begin{textblock}{.1}(#1,#2)\rlap{\includegraphics[#3]{#4}}\end{textblock}} 7 | 8 | % Title and date 9 | 10 | $if(title)$ 11 | \title{$title$} 12 | $endif$ 13 | $if(subtitle)$ 14 | \usepackage{etoolbox} 15 | \makeatletter 16 | \providecommand{\subtitle}[1]{% add subtitle to \maketitle 17 | \apptocmd{\@title}{\par {\large #1 \par}}{}{} 18 | } 19 | \makeatother 20 | \subtitle{$subtitle$} 21 | $endif$ 22 | \date{$date$} 23 | 24 | \def\Date{\number\day} 25 | \def\Month{\ifcase\month\or 26 | January\or February\or March\or April\or May\or June\or 27 | July\or August\or September\or October\or November\or December\fi} 28 | \def\Year{\number\year} 29 | 30 | %%%% PAGE STYLE FOR FRONT PAGE OF REPORTS 31 | 32 | \makeatletter 33 | \def\organization#1{\gdef\@organization{#1}} 34 | \def\telephone#1{\gdef\@telephone{#1}} 35 | \def\email#1{\gdef\@email{#1}} 36 | \makeatother 37 | $if(organization)$ 38 | \organization{$organization$} 39 | $else$ 40 | \organization{} 41 | $endif$ 42 | 43 | $if(department)$ 44 | \def\name{$department$} 45 | $else$ 46 | \def\name{Department of\newline Econometrics \&\newline Business Statistics} 47 | $endif$ 48 | 49 | $if(phone)$ 50 | \telephone{$phone$} 51 | $else$ 52 | \telephone{(03) 9903 4416} 53 | $endif$ 54 | 55 | $if(email)$ 56 | \email{$email$} 57 | $else$ 58 | \email{BusEco-Econometrics@monash.edu} 59 | $endif$ 60 | 61 | \def\webaddress{\url{https://www.monash.edu/business/ebs}} 62 | \def\abn{12 377 614 012} 63 | \def\extraspace{\vspace*{1.6cm}} 64 | \makeatletter 65 | \def\contactdetails{\faicon{phone} & \@telephone \\ 66 | \faicon{envelope} & \@email} 67 | \makeatother 68 | 69 | \usepackage[absolute,overlay]{textpos} 70 | \setlength{\TPHorizModule}{1cm} 71 | \setlength{\TPVertModule}{1cm} 72 | 73 | %%%% FRONT PAGE OF REPORTS 74 | 75 | \def\reporttype{Report for} 76 | 77 | \long\def\front#1#2#3{ 78 | \newpage 79 | \begin{textblock}{7}(12.7,28.2)\hfill 80 | \includegraphics[height=0.6cm]{AACSB}~~~ 81 | \includegraphics[height=0.6cm]{EQUIS}~~~ 82 | \includegraphics[height=0.6cm]{AMBA} 83 | \end{textblock} 84 | \begin{singlespacing} 85 | \thispagestyle{empty} 86 | \vspace*{-1.4cm} 87 | \hspace*{-1.4cm} 88 | \hbox to 16cm{ 89 | \hbox to 6.5cm{\vbox to 14cm{\vbox to 25cm{ 90 | \includegraphics[width=6cm]{monash2} 91 | \vfill 92 | \includegraphics[width=2cm]{MBSportrait} 93 | \vspace{0.4cm} 94 | \par 95 | \parbox{6.3cm}{\raggedright 96 | \sf\color[rgb]{0.00,0.00,0.70} 97 | {\large\textbf{\name}}\par 98 | \vspace{.7cm} 99 | \tabcolsep=0.12cm\sf\small 100 | \begin{tabular}{@{}ll@{}}\contactdetails 101 | \end{tabular} 102 | \vspace*{0.3cm}\par 103 | ABN: \abn\par 104 | } 105 | }\vss}\hss} 106 | \hspace*{0.2cm} 107 | \hbox to 1cm{\vbox to 14cm{\rule{1pt}{26.8cm}\vss}\hss\hfill} 108 | \hbox to 10cm{\vbox to 14cm{\vbox to 25cm{ 109 | \vspace*{3cm}\sf\raggedright 110 | \parbox{10cm}{\sf\raggedright\baselineskip=1.2cm 111 | \fontsize{24.88}{30}\color[rgb]{0.70,0.00,0.00}\sf\textbf{#1}} 112 | \par 113 | \vfill 114 | \large 115 | \vbox{\parskip=0.8cm #2}\par 116 | \vspace*{2cm}\par 117 | \reporttype\\[0.3cm] 118 | \hbox{#3}%\\[2cm]\ 119 | \vspace*{1cm} 120 | {\large\sf\textbf{\Date~\Month~\Year}} 121 | }\vss} 122 | }} 123 | \end{singlespacing} 124 | \newpage 125 | } 126 | 127 | \makeatletter 128 | \def\maketitle{\front{\expandafter{\@title}}{\@author}{\@organization}} 129 | \makeatother 130 | 131 | % Authors 132 | 133 | \author{\sf$for(by-author)${\Large\textbf{$by-author.name.literal$} $if(by-author.degrees)$\\\large $by-author.degrees$$endif$\\[0.5cm]}$endfor$} 134 | \lfoot{\sf $for(by-author)$$by-author.name.family$$sep$, $endfor$: $date$} 135 | -------------------------------------------------------------------------------- /examples/template.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quarto-monash/report/940797814a7eaa4cf5352b504f37bec8e79e1922/examples/template.pdf -------------------------------------------------------------------------------- /examples/template.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quarto-monash/report/940797814a7eaa4cf5352b504f37bec8e79e1922/examples/template.png -------------------------------------------------------------------------------- /monash-quarto-report.Rproj: -------------------------------------------------------------------------------- 1 | Version: 1.0 2 | 3 | RestoreWorkspace: Default 4 | SaveWorkspace: Default 5 | AlwaysSaveHistory: Default 6 | 7 | EnableCodeIndexing: Yes 8 | UseSpacesForTab: Yes 9 | NumSpacesForTab: 2 10 | Encoding: UTF-8 11 | 12 | RnwWeave: Sweave 13 | LaTeX: pdfLaTeX 14 | 15 | AutoAppendNewline: Yes 16 | StripTrailingWhitespace: Yes 17 | -------------------------------------------------------------------------------- /references.bib: -------------------------------------------------------------------------------- 1 | @ARTICLE{BC64, 2 | title = "An analysis of transformations", 3 | author = "Box, George E P and Cox, David R", 4 | year = 1964, 5 | journal = "Journal of the Royal Statistical Society, Series B", 6 | volume = 26, 7 | number = 2, 8 | pages = "211--252" 9 | } 10 | 11 | @BOOK{Rice2007, 12 | title = "Mathematical Statistics and Data Analysis", 13 | author = "Rice, John A", 14 | publisher = "Duxbury", 15 | edition = "3rd edition", 16 | year = 2007, 17 | } 18 | -------------------------------------------------------------------------------- /template.qmd: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Expert advice from experts" 3 | author: 4 | - name: Professor Marie Curie 5 | degrees: Nobel Prize, PhD 6 | email: mcurie.notreal@gmail.com 7 | - name: Dr Pierre Curie 8 | degrees: Nobel Prize, PhD 9 | phone: (03) 9905 2478 10 | email: BusEco-Econometrics@monash.edu 11 | organization: Acme Corporation 12 | bibliography: references.bib 13 | format: report-pdf 14 | --- 15 | 16 | # Introduction 17 | 18 | In a famous paper, @BC64 introduced a family of transformations \dots 19 | 20 | ```{r} 21 | #| label: fig-density 22 | #| fig-cap: Simulated data from a N(0,1) distribution. 23 | library(tidyverse) 24 | set.seed(2022-12-20) 25 | df <- tibble(x = rnorm(200)) 26 | df |> 27 | ggplot(aes(x=x)) + 28 | geom_density(bw = "sj") + 29 | geom_rug() 30 | ``` 31 | 32 | @fig-density shows a kernel density estimate of simulated data from a N(0,1) distribution. The sample variance is given by 33 | $$ 34 | s^2 = \frac{1}{n-1} \sum_{i=1}^n (x_i-\bar{x})^2 = `r round(sd(df$x), 2)`. 35 | $$ {#eq-s2} 36 | Note that @eq-s2 is an unbiased estimate of the variance, but it is not the maximum likelihood estimate [@Rice2007, p.269]. 37 | --------------------------------------------------------------------------------