1 #LyX 2.1 created this file. For more info see http://www.lyx.org/
7 %the following commands are used only for articles and codesnippets
9 \author{First Author\\Affiliation of the first author \And
10 Second Author\\Affiliation of the second author \AND
11 Third Author\\Affiliation of the third author}
12 \title{Article About the Use of Package \pkg{foo} in \proglang{R}}
14 % the same as above, without any formatting
15 \Plainauthor{First Author, Second Author, Third author}
16 \Plaintitle{Article About the Use of Package foo in R}
17 %if necessary, provide a short title
18 \Shorttitle{Package foo in R}
20 \Abstract{This is the abstract of the article.}
21 %at least one keyword is needed
22 \Keywords{keyword 1, keyword 2, \pkg{foo}, \proglang{R}}
23 %the same as above, without any formatting
24 \Plainkeywords{keyword 1, keyword 2, foo, R}
26 %the following commands are used only for book or software reviews
28 %\Reviewer{Some Author\\University of Somewhere}
29 %\Plainreviewer{Some Author}
31 %the following commands are used only for book reviews
32 %\Booktitle{LyX and \proglang{R}: Secrets of the LyX Master}
33 %\Bookauthor{Book Author}
38 %the following command is used only for software reviews
39 %\Softwaretitle{\proglang{gretl 1.7.4}}
41 %the following commands are used only for book or software reviews
42 %\Publisher{LyX Publishing Inc.}
43 %\Pubaddress{LyX City}
44 %\Price{USD 59.95 (P), USD 99.95 (H)}
45 %\URL{http://www.lyx.org/}
47 %without any formatting
48 %\Plaintitle{LyX and R: Secrets of the LyX Master}
49 %\Shorttitle{LyX and R}
51 %the following commands are used for articles, codesnippets, book reviews and software reviews
53 %publication information
54 %do not use these commands before the article has been accepted
59 %\Submitdate{2000-00-00}
60 %\Acceptdate{2000-00-00}
62 %The address of at least one author should be given in the following format
65 Department of Statistics\\
66 University of Somewhere\\
67 Somewhere, Somecountry\\
68 E-mail: \email{first.author@lyx.org}\\
69 URL: \url{http://www.lyx.org}
71 %you can add a telephone and fax number before the e-mail in the format
72 %Telephone: +12/3/4567-89
75 %if you use Sweave, include the following line (with % symbols):
76 %% need no \usepackage{Sweave.sty}
79 \use_default_options false
80 \maintain_unincluded_children false
82 \language_package default
87 \font_typewriter default
89 \font_default_family default
90 \use_non_tex_fonts false
96 \default_output_format pdf2
98 \bibtex_command default
99 \index_command default
100 \paperfontsize default
105 \use_package amsmath 0
106 \use_package amssymb 0
107 \use_package cancel 0
109 \use_package mathdots 1
110 \use_package mathtools 0
111 \use_package mhchem 1
112 \use_package stackrel 0
113 \use_package stmaryrd 0
114 \use_package undertilde 0
116 \cite_engine_type authoryear
117 \biblio_style plainnat
120 \paperorientation portrait
130 \paragraph_separation indent
131 \paragraph_indentation default
132 \quotes_language english
135 \paperpagestyle default
136 \tracking_changes false
137 \output_changes false
140 \html_be_strict false
145 \begin_layout Standard
146 \begin_inset Note Note
149 \begin_layout Plain Layout
150 This is a template LyX file for articles to be submitted to the Journal
151 of Statistical Software (JSS).
152 How to install the JSS LaTeX class to your LaTeX system is explained in
154 \begin_inset Flex URL
157 \begin_layout Plain Layout
159 http://wiki.lyx.org/Layouts/JSS
170 \begin_inset Note Note
173 \begin_layout Plain Layout
174 Note that title, author, address, abstract, keywords etc for this article
175 style are written in the LaTeX preamble (accessed from Document\SpecialChar \menuseparator
176 Settings...\SpecialChar \menuseparator
182 \begin_layout Plain Layout
183 To use the JSS codesnippet, bookreview or softwarereview styles, replace
185 \begin_inset Quotes eld
189 \begin_inset Quotes erd
192 in Document\SpecialChar \menuseparator
193 Settings...\SpecialChar \menuseparator
194 Document Class\SpecialChar \menuseparator
196 \begin_inset Quotes eld
200 \begin_inset Quotes erd
204 \begin_inset Quotes eld
208 \begin_inset Quotes erd
212 \begin_inset Quotes eld
216 \begin_inset Quotes erd
219 and remove/uncomment the relevant parts in the LaTeX Preamble.
223 \begin_layout Plain Layout
224 If you want to use this JSS article style for a non-JSS article, replace
226 \begin_inset Quotes eld
230 \begin_inset Quotes erd
234 \begin_inset Quotes eld
238 \begin_inset Quotes erd
242 This will suppress the JSS-specic parts of the layout.
245 \begin_layout Plain Layout
246 To include the JSS-specific parts of the layout, the article has to be processed
248 you cannot process it with DVI or PS.
249 However, if the option
250 \begin_inset Quotes eld
254 \begin_inset Quotes erd
257 is used, it can be processed with DVI or PS.
265 \begin_layout Section
266 \begin_inset Note Note
269 \begin_layout Plain Layout
270 The opt field provides bookmarks for PDF files
276 \begin_inset Argument 1
279 \begin_layout Plain Layout
280 About package foo in R
289 \begin_layout Plain Layout
302 \begin_layout Plain Layout
313 \begin_layout Plain Layout
324 \begin_layout Plain Layout
337 \begin_layout Plain Layout
348 \begin_layout Plain Layout
358 \begin_layout Standard
359 The special JSS style commands related to software and mathematical formulas
360 are written as follows in LyX:
364 \begin_layout Plain Layout
377 \begin_layout Plain Layout
390 \begin_layout Plain Layout
397 for the names of programming languages,
401 \begin_layout Plain Layout
414 \begin_layout Plain Layout
427 \begin_layout Plain Layout
434 for software packages, and
438 \begin_layout Plain Layout
451 \begin_layout Plain Layout
464 \begin_layout Plain Layout
472 \begin_inset Formula $\E$
476 \begin_inset Note Note
479 \begin_layout Plain Layout
488 \begin_inset Formula $\VAR$
492 \begin_inset Note Note
495 \begin_layout Plain Layout
504 \begin_inset Formula $\COV$
508 \begin_inset Note Note
511 \begin_layout Plain Layout
520 \begin_inset Formula $\Prob$
524 \begin_inset Note Note
527 \begin_layout Plain Layout
538 \begin_layout Standard
539 Writing several lines of code:
542 \begin_layout Standard
546 \begin_layout Plain Layout
553 \begin_layout Plain Layout
560 \begin_layout Plain Layout
565 \begin_layout Plain Layout
570 \begin_layout Plain Layout
575 \begin_layout Plain Layout
582 \begin_layout Plain Layout
594 \begin_layout Standard
595 Alternatively, you can distinguish between input and output code:
598 \begin_layout Standard
602 \begin_layout Plain Layout
609 \begin_layout Plain Layout
616 \begin_layout Plain Layout
618 first line of input code
621 \begin_layout Plain Layout
623 second line of input code
626 \begin_layout Plain Layout
633 \begin_layout Plain Layout
640 \begin_layout Plain Layout
642 first line of output code
645 \begin_layout Plain Layout
647 second line of output code
650 \begin_layout Plain Layout
652 third line of output code
655 \begin_layout Plain Layout
662 \begin_layout Plain Layout
674 \begin_layout Section*
678 \begin_layout Standard
679 Here you can write some acknowledgments.