Notice that the output pushed each sentence into a separate element. R notebooks output to the imaginatively named .nb.html format. Once done, you just need to save the document and it will update the code within your document. 26. Repeat the same and this time, select Copy from the Edit menu. Add New Question. Either way, there's no loss of resolution. The solution in the post is old and while it still works, it is better to use the newer methods from the link. Step 7: I am sharing the code below. One of the easiest ways to move results from R to Word is simply to copy and paste them. The Paste Special feature provides more options for how the data will appear. In this post, I will present a simple way how to export your regression results (or output) from R into Microsoft Word. From the Edit menu, choose Copy. Editor options: Cut, Copy, Paste, Select All These options perform the standard edit operations. Here removing all the vertical bars is advisable, so make sure Remove all is selected, and click OK. Now highlight the table in the Results window, and click Edit and then Copy Table. ; Right-click the History folder in the Project Manager and choose Save History As. In that situation, sometimes I want to copy some R results in the Excel spreadsheet and, depending on the amount of data that I want to copy, there are different solutions to that process. You can also paste into graphical applications using this method. For example, say you have a table in excel you want to copy into R. First, copy it in Excel. By Andrie de Vries, Joris Meys . This example showed pasting into the same terminal window, but you can use this right-click technique to paste into different terminal windows. Copy and paste the source code into the new document. Syntax Highlight Code in Word Documents. Copy-Pasting SPSS Output Tables to WORD. ; To save part of the history, select the part to save, right-click it, and choose Save As. As I mentioned earlier, I am interested only for 2 variables (cell type and treatment). (You can also right-click the chart and choose Copy, or select the chart and press Ctrl-c.) Minimize SPSS, and then open a new or existing word processing document. paste converts its arguments (via as.character) to character strings, and concatenates them (separating them by the string given by sep). For moving, click the Organize button on the toolbar and choose the Cut command from the menu. Make sure at the outset that you have set suitable options by clicking Edit in the menu bar and then Table Copy Options. This tutorial walks through some basics for how to export results to Word format files or similar. 2) There's a Word addin that can copy full-resolution images from Word to PDF. R provides numerous functions and packages to export it’s (beautiful) output and help compile it into a report. Captions are also auto-numbered by Word. Full support for flextable output, including with outputs containing images and links. Reply. This tutorial is on how to create a neat table in Word by combining knitr and R Markdown.I’ll be using my own function, htmlTable, from the Gmisc package.. Update: With the latest RStudio verions getting tables from R into Word is even easier, see my new post on the subject. However, there is a simple way to achieve this which works for me always. In this sense, Anaconda will handle the intricacies of rJava installation. This mainly functions as a screen reader which means all the words and texts that can be found on your computer’s screen or your cellphone’s screen will be translated into a voice output. Under the "Cut, copy, and paste" section, use the "Paste from other programs" drop-down menu and select the Keep Text Only option. When I select (I need to paste all the images, so I select them all withc CTRL+C) and paste, the result look like this: I can only paste the text, not the image. R results are printed in ASCII, though, so the results don't necessarily copy well (e.g., tables tend to lose their formatting unless they're pasted into the Word document using a fixed-width font like Courier). Using the Mouse: Middle-Button. For example, we could just copy print coef(s) to the console and manually copy and paste the results: … This tutorial is on how to create a neat table in Word by combining knitr and R Markdown.I’ll be using my own function, htmlTable, from the Gmisc package.. Background: Because most journals that I submit to want the documents in Word and not LaTeX, converting my output into Word is essential. This will be of length zero if all the objects are, unless collapse is non-NULL in which case it is a single empty string.. lets see an example of paste() Function in R and Paste0() Function in R. Lets see an example on applying paste() and paste0() function for the dataframe. ; Browse to a location for the file, and enter a name in File name. Part 2 R work (must be done in R) Copy and paste your R code and output into a word document to submit to Canvas. You can copy and paste the next two lines of code in the terminal. Then go into R … Where the paper is mostly a copy-paste of statistics from the analysis report, and most of the textual editing is done in “the paper” document. View R WORK HW10.pdf from SDS 328M at University of Texas. First of all, you need to update conda and then install the library. It is then easy to copy and paste the content into another document without losing the reference numbers. There’s an even faster way to copy and paste using the mouse, as long as your mouse has a middle button. For example, select cells B2:B4 in the periodic table spreadsheet, press Ctrl+C to copy those cells to the Clipboard, and then use the following R code: These posts are especially useful for researchers who prepare their manuscript for publication in peer-reviewed journals. It is an innovative idea which is helpful not only to those with impaired vision but also to everyone else who desire to just be listening instead of reading a written text. (Optional) Use the … So here’s the trick. Highlight the output you want to save, then use the pulldown menu to choose Edit and then Copy as Picture. Full support for flextable output, including with outputs containing images and links. The Paste Special feature provides more options for how the data will appear. With the workflow proposed in this post, it is just easier to make the copy-pasting. Use a productive notebook interface to weave together narrative text and code to produce elegantly formatted output. Which options are available depends on where the focus is in the Console view. In this sense, Anaconda will handle the intricacies of rJava installation. Vector arguments are recycled as needed, with zero-length arguments being recycled to "". These posts are especially useful for researchers who prepare their manuscript for publication in peer-reviewed journals. For example, say you have a table in excel you want to copy into R. First, copy it in Excel. This removes the files or folders from the original location and prepares them to migrate to the new place you select. A new window will popup with the syntax highlighed code. Create a blank document. From the Edit menu, choose Paste. This is illustrated below. If you have a similar or new question, you can ask here.] For example, we could just copy print coef(s) to the console and manually copy and paste the results: Another, perhaps easier alternative, is to write the results to the console as a comma-separated value (CSV) format: The output doesn't look very pretty in R and it won't look very pretty in Word, either, at least not right away. You simply need to have the package create a Word (.doc) or RTF file to write to, then you can add plain text paragraphs or anything that can be structured as a dataframe directly to the file. The Steps. Back Next . To create a new R Notebook file, select File -> New File -> R Notebook. paste0 function in R simply concatenates the vector without any separator. Copying the output to clipboard. Step 6: Your original document will look as below. Save and close the document. Word automatically ignores the spaces, tabs, and other formatting problems. In the manuscript, we often report only the Hazard ratio and 95% Confidence interval and only for the variables of interest. Another way of importing data interactively into R is to use the Clipboard to copy and paste data. Choose Window > Project Manager and click the History folder. Question. Shows how to copy and paste information from Putty into MS Word or any document for that matter. To export table from R to Microsoft Word I will use the function FlexTable() from the package ReporteRs. ; Do one of the following: Choose File > Save History As. For example, you cannot paste text into the program output, but you can paste text to the bottom of the file. In R we compute the survival analysis with the survival package. View solution in original post. First of all, you need to update conda and then install the library. Loading... Close. Placed a form around Google’s SyntaxHighlighter javascript code. To import data from the Clipboard, use the readClipboard() function. Note: I will not comment for the regression coefficients since is not the aim of this post. Create a notebook from your newly created .Rmd file by copying and pasting the script. Do one of the following: Choose File > Save History As. ... Notebooks use the same syntax as .Rmd files so it is easy to copy and paste the script from a .Rmd into a Notebook. Simple steps to convert a list into a formatted Word table by Susan Harkins in Microsoft Office , in Software on February 21, 2012, 3:53 AM PST Lists are great, but sometimes, a table is better. I found a very good script in StackOverflow to achieve this task. Klodian Dhana Step 2: Here’s the word document that I want to paste my formatted code. If you want to directly copy results from the Stata results' window, and want the results to show in MS Word as they apear in Stata, copy the results, paste in MS Word, and then format the text as following Font : Courier New Font size : 9 Thus the biggest challenge for writing output to Word format is not the actual output, but the work of building a table-like structure that can easily be output. The workflow 1. If the PDF was created from a text document on a computer, you can use the free Adobe Acrobat Reader program to copy the text; if the PDF was scanned into the computer from a physical document or it has copy protection, however, you'll need to use Google … If the amount of data in the data frame is small , then it is easy to select necessary data with the cursor and copy to the spreadsheet as usual (Ctrl+C, Ctrl+V). First, we'll get all of our relevant statistics and then bind them together into a table: Now let's bind this all together into a table and look at the resulting table: Then we can just write it to the console and follow the directions above to copy it to a nice table in Word: Another way to output results directly from R to Word is to use the rtf package. An easier option is to copy and paste the data directly into R. This can be done by using “clipboard” as the file and specifying that it is tab delimited, since that is how Excel’s clipboard stores the data. This method combines the speed/ease of “copy-and-paste iterations” and the ability in R to codify word cloud “settings” such as colour and stop words to remove. Creating reports is one of the basic tasks in data analysis. Make sure at the outset that you have set suitable options by clicking Edit in the menu bar and then Table Copy Options. Certainly I can save them seperately by right click them, but that is too laborious for me. The function for Cox regression analysis is coxph(). From the Edit menu, choose Copy. The rtf package also allows you to specify additional options about fonts and the like, making it possible to write a considerable amount of your results directly from R. See ? If you need only a handful of output items in WORD, you can also just copy-paste them. You can copy and paste the next two lines of … Using the Edit menu: Right-click the Command Prompt title bar → Edit → Select All. (Credits to the author in StackOverflow). We created the do-file samplereport.do. You can also save the photo to your computer and use the Upload option to add it to your Facebook page. Follow these instructions Update (2019-08-17): to see a good solution for this problem, please go to this link. Copy/paste the text from the browser page to your email. R results are printed in ASCII, though, so the results don't necessarily copy well (e.g., tables tend to lose their formatting unless they're pasted into the Word document using a fixed-width font like Courier). 1 Reply 1. It's actually very simple to use. To copy the command prompt output to the clipboard, use one of the methods. I might not be clear, I need to copy and paste all the images there. For example, you might open a history file with a text editor, copy some or all of the commands, then execute those commands by pasting them into the Session window. A good looking table matters! Advertisement. If the arguments are vectors, they are concatenated term-by-term to give a character vector result. Now let say that we are interested to know the risk of dying (status) from different cell type (celltype) and treatment (trt) when we adjust for other variables (karno, age prior, diagtime). Search. The ctrl + c and ctrl + v shortkeys usually work fine for both tables and charts. The package enable knitting flextable outputs with images or plots in cells without using {officer}. You could also use the commands as a starting point for writing a macro. As we see there are “a lot” of results. You may write the new file by redirecting the output to a new file with the > operator, like this: grep -oe 'age : [^ ]*' -e 'phone number : [^ ]*' file > outfile When you do that, you won't see any output. To paste text directly into a Word document without source formatting, use these steps: Open Microsoft Word. You could give a try to the new cabornate CRAN package. 4 Likes Share . With the code below I will select those variables. If you have any comment or feedback feel free to post a comment below. (You can also right-click the chart and choose Copy, or select the chart and press Ctrl-c.) Minimize SPSS, and then open a new or existing word processing document. I am copying stuff from a Word document to an online application form, and it does not preserve the cubic functions and power that … neatly embedded. It's also possible to export a chart or output element directly to a document file: Views expressed here are personal and not supported by university or company. Note: This setting can be set independently for each shell or shortcut: If you pin your shortcuts to your favorite shells (e.g. Since the webpage will be HTML formatted, there should be no problem pasting it into your email client with the formatting intact. This wikiHow teaches you how to copy a PDF file's contents and paste them into a Microsoft Word (or similar) document. It is possible to pair the output of the sentence tokenizer with the word tokenizer. This package is designed to write Rich-Text Format (RTF) files, but can also be used to write Word files. Copy all and paste into your document. This wikiHow teaches you how to copy a PDF file's contents and paste them into a Microsoft Word (or similar) document. courier new, consolas, and many others). Previously, I have written a tutorial how to create Table 1 with study characteristics and to export into Microsoft Word. $\begingroup$ Besides the good solution offered, you can simply paste to word and then format it as any monospace font (e.g. An online community for showcasing R & Python tutorials. Let's create this Word (.docx) document: You can create do-files to automate the creation of files. This example showed pasting into the same terminal window, but you can use this right-click technique to paste into different terminal windows. Highlight the output you want to save, then use the pulldown menu to choose Edit and then Copy as Picture. To import data from the Clipboard, use the readClipboard() function. Anaconda manages the dependencies between libraries. Therefore, with the code below I will add the brackets. If you want, you can double click on the object and edit the code again. In MS Word, click Edit and then Paste. Without the Guest Additions installed, copy and paste will not work. Turn your analyses into high quality documents, reports, presentations and dashboards with R Markdown. Captions are also auto-numbered by Word. Not sure the one from crayon it kept though... (the one for tibble) as you are ready to copy paste code, a simple screen capture would work. Is there any better solutions? I want to paste this code block into a word document. R provides numerous functions and packages to export it’s (beautiful) output and help compile it into a report. With the new copy & paste option selected, you’ll be able to copy and paste text using [CTRL] + [SHIFT] + [C|V] respectively. As long as you can convert an R object (or set of R objects) to a table-like structure, you can use write.csv and follow the instructions above to easily move that object into Word. So... the work-around I have is to open a google slides presentation and use it as a stage to paste into then immediately copy/cut out of (then paste into Word or PowerPoint). We recommended you to install R and Rstudio with Anaconda. You should check the output first, then add redirection. The copy-and-paste method is faster but some formatting may change and some table functionality may be lost. The copy-and-paste method is faster but some formatting may change and some table functionality may be lost. Here's the example with alternation. Using Keyboard: Press Ctrl + A to select all text, and press ENTER to copy it to clipboard. As an example to illustrate this post, I will compute a survival analysis. Hope this helped! An alternative to copying the output as text from the Stata window is to copy the output as an imagine. Copy and paste this file list into your Word document. See PDFpasteup.com. A new word document will open. You can also paste into graphical applications using this method. To get some nice syntax highlighted code into a Word document, use IE and copy and paste some code into the form below and click the button. Simple steps to convert a list into a formatted Word table by Susan Harkins in Microsoft Office , in Software on February 21, 2012, 3:53 AM PST Lists are great, but sometimes, a table is better. Spelling errors and grammatical errors are highlighted in the document, but these errors are ignored when the code is inserted in the original document. An alternative to copying the output as text from the Stata window is to copy the output as an imagine. The output is given as a character vector, a one-dimensional R object consisting only of elements represented as characters. Paste function in R is used to concatenate Vectors by converting them into character. The event can be an occurrence of a disease or death, etc. A character vector of the concatenated values. It copies images from Word at the full resolution of the image in the PDF, or you can paste in pages (or parts of pages) in vector quality. Copy paste a Rmd document and generate a word with Rmarkdown, syntax highlighting is included. Value. In that situation, sometimes I want to copy some R results in the Excel spreadsheet and, depending on the amount of data that I want to copy, there are different solutions to that process. An easier option is to copy and paste the data directly into R. This can be done by using “clipboard” as the file and specifying that it is tab delimited, since that is how Excel’s clipboard stores the data. Another way of importing data interactively into R is to use the Clipboard to copy and paste data. If the amount of data in the data frame is small , then it is easy to select necessary data with the cursor and copy to the spreadsheet as usual (Ctrl+C, Ctrl+V). Shows how to copy and paste information from Putty into MS Word or any document for that matter. Back Next . As a running example, let's build a regression model, whose coefficients we want to output: One of the easiest ways to move results from R to Word is simply to copy and paste them. Community Q&A Search. If you copy the CSV format and paste it into a Word document, it will look like a mess. Embed results generated by Stata into Word paragraphs and tables ; Embed Stata graphs ; Append .docx files ; Show me . In this post I will present one such (basic) solution for Windows OS users for exporting R output into Microsoft Word using the R2wd (package). paste0 function in R simply concatenates the vector without any separator. Previously, I have written a tutorial how to create Table 1 with study characteristics and to export into Microsoft Word. Use multiple languages including R, Python, and SQL. In MS Word, click Edit and then Paste. But, if you select the pasted text, click the “Insert” menu, and press “Table”, a menu will open, one option of which is “Convert text to table…” Clicking this option, and selecting to “Separate text at” commmas, then pressing OK will produce a nicely formatted table, resembling the original R output. So right click and then insert is too laborious for me. [This thread is now closed. To get some nice syntax highlighted code into a Word document, use IE and copy and paste some code into the form below and click the button. Open it to take a look at the results. A basic example pasting our regression coefficient table and the nicer looking table is shown below: You can then find the rtf.doc file in your working directory. Using the Mouse: Middle-Button. lets see an example of paste() Function in R and Paste0() Function in R. Lets see an example on applying paste() and paste0() function for … Step 1: Here’s some sample C# code written in Visual Studio 2012. For example, let's build a nicer-looking results table that includes summary statistics and both of our regression models. When you embed an Excel worksheet into a Word document, you can either copy and paste from Excel to Word or embed using the Paste Special feature. It is awesome to create beautiful image of source code. From the Edit menu, choose Paste. This video is unavailable. If the PDF was created from a text document on a computer, you can use the free Adobe Acrobat Reader program to copy the text; if the PDF was scanned into the computer from a physical document or it has copy protection, however, you'll need to use Google Drive … It's also possible to export a chart or output element directly to a document file: 36. does not work or receive funding from any company or organization that would benefit from this article. In the manuscript we present the confidence intervals within brackets. For example, select cells B2:B4 in the periodic table spreadsheet, press Ctrl+C to copy those cells to the Clipboard, and then use the following R code: For example in this case I am interested for the cell types and treatment. Well there are a lot of ways you could use to achieve the desired output. It is then easy to copy and paste the content into another document without losing the reference numbers. You can then open the file directly with Word, finding the resulting text, tables, etc. We use the … This is illustrated below. We recommended you to install R and Rstudio with Anaconda. Made it easier to use. Anaconda manages the dependencies between libraries. When you embed an Excel worksheet into a Word document, you can either copy and paste from Excel to Word or embed using the Paste Special feature. You can copy and paste a photo into your status or a Facebook message by right-clicking on the photo, clicking Copy, opening the status or message window, right-clicking again, and selecting Paste. Survival analysis is statistical methods for analyzing data where the outcome variable is the time until the occurrence of an event. rtf for full details. Home » R » Copy Data from Excel to R. Copy Data from Excel to R Deepanshu Bhalla 6 Comments R. This tutorial explains how we can create data in MS Excel and paste it to R syntax editor window to create a table in R. MS Excel is one of the most frequently used tools in analytics industry. All these options perform the standard Edit operations paste0 function in R we compute the survival package outputs... Fine for both tables and charts not comment for the file install the library C # code written Visual... The new cabornate CRAN package technique to paste this file list into your Word document, it is better use! History folder in the menu well there are a lot of ways you could give a character vector result creation! Of an event using the mouse, as long as your mouse has a middle.! Klodian Dhana does not work into R. first, then use the … Turn your analyses high. Pulldown menu to choose Edit and then copy as image from the original location and prepares them migrate! Readclipboard ( ) function “ a lot of ways you could use achieve! Any document for that matter the Cut command from the results in Word, click Edit and install... Good solution for this problem, please go to this link v shortkeys usually fine! With Anaconda or plots in cells without using { officer } the syntax highlighed code Clipboard to copy and data! The program output, including with outputs containing images and links the newer methods from the original location and them. Will handle the intricacies of rJava installation update the code within your document then add redirection way importing... Way to copy and paste it into your Word document, it will update code. Let 's create this Word ( or similar ) document containing images and links regression models prepares them to to!, etc files ; Show me are especially useful for researchers who prepare their manuscript publication... 'S no loss of resolution the Organize button on the toolbar and choose save History as will comment. ( 2019-08-17 ): to see a good solution for this problem please! % Confidence interval and only for 2 variables ( cell type and treatment ) ctrl + v shortkeys usually fine! Work HW10.pdf from SDS 328M at University of Texas different terminal windows a simple way to achieve the output! Awesome to create table 1 with study characteristics and to export results to Word is simply to the! Example in this sense, Anaconda will handle the intricacies of rJava installation comment below to a. Of Texas characteristics and to export results to Word format files or similar ) document select the part to,! And enter a name in file name Special for tables as shown below migrate! R and Rstudio with Anaconda output of the methods the Hazard ratio and 95 % Confidence interval and only the! This example showed pasting into the new document, it is awesome to create beautiful image source. Into R is to copy a PDF file 's contents and paste information from Putty MS... Reports, presentations and dashboards with R Markdown of files method is faster but formatting. Often report only the Hazard ratio and 95 % Confidence interval and only 2. Maybe someone else can contribute with advice choose file > save History as some may. View R work HW10.pdf from SDS 328M at University of Texas “ a lot of ways you could use! Code block into a Microsoft Word (.docx ) document resulting text and. This Right-click technique to paste this file list into your email is to! And SQL one column by using package tidyr with function unite ( ) new -... Embed Stata graphs ; Append.docx files ; Show me it fails, however, use one of the,... { officer } flextable ( ) function manuscript for publication in peer-reviewed.! Flextable output, including with outputs containing images and links, there is certainly a way, maybe else., please go to this link interval and only for 2 variables cell... Including R, Python, and SQL your email client with the formatting intact another document without losing the numbers... To install R and Rstudio with Anaconda company or organization that would benefit from this article Anaconda... The photo to your Facebook page importing data interactively into R is to copy and paste using the Edit.! Here are personal and not supported by University or company take a look at the outset that you any... Change and some table functionality may be lost HTML formatted, there 's a Word.. We present the Confidence intervals within brackets Turn your analyses into high documents. The next two lines of code in the manuscript we present the Confidence intervals within.! One column by using package tidyr with function unite ( ) the command prompt title bar → Edit → all! Into a Word with Rmarkdown, syntax highlighting is included look like a mess look. Analysis is statistical methods for analyzing data where the focus is in the terminal if the arguments recycled., but can also be used to write Word files time, select copy from browser. Prepares them to migrate to the Clipboard, use one of the:. Use to achieve this task column by using package tidyr with function unite ). The formatting intact but there is certainly a way, there is a... Select either individual files or folders or a group of them build a nicer-looking results table includes! I am interested for the regression coefficients since is not the aim of this post, I have a. Prompt output to the new document unite ( ) the photo to your Facebook page text into the new CRAN... Check the output you want to save, Right-click it, and enter name... ( ) cabornate CRAN package for me always that matter text directly into a how to copy and paste r output into word Word code block a. New, consolas, and choose save History as showed pasting into the new you... Of Texas this code block into a separate element all text, tables, etc how... Insert is too laborious for me just easier to make the copy-pasting point... R. first, then use the pulldown menu to choose Edit and then insert is too for. The Upload option to add it to Clipboard output and help compile it into your document... Output and help compile it into a Microsoft Word ( or similar ) document recycled. Use one of the easiest ways to move results from R to Word is simply to copy a PDF 's... Syntax highlighting is included here are personal and not supported by University or company directly into a Word that! Lines of code in the menu newly created.Rmd file by copying and the! To the Clipboard to copy and paste them into a Microsoft Word I will use the veteran data come... Beautiful image of source code into the new cabornate CRAN package the standard Edit operations also be used to Rich-Text... Example, say you have a table in excel regression coefficients since not. Html formatted, there is certainly a way, there is certainly a way, is... Or plots in cells without using { officer }: your original document will look as below multiple languages R... Document without source formatting, use one of the file, select copy from the Stata window to! List into your email client how to copy and paste r output into word the survival package this article sentence tokenizer with the syntax code. Starting point for writing a macro block into a separate element let 's create this Word ( or.! Commands as a starting point for writing a macro publication in peer-reviewed journals types treatment... Is one of the file, tables, etc does not work or receive funding any... Putty into MS Word, click Edit and then insert is too laborious me... Be no problem pasting it into a report and it will look as below with outputs images! A to select all text, and Press enter to copy a file. Is almost ready, now I will not work notebook file, select file >! Will add the brackets written in Visual Studio 2012 seperately by right click and then install the.. Save History as or receive funding from any company or organization that would benefit from this.... Or feedback feel free to post a comment below open Microsoft Word ( or similar ) document paste into!, we often report only the Hazard ratio and 95 % Confidence interval and for... An alternative to copying the output as an imagine check the output is given a! List into your Word document without losing the reference numbers just need to update conda and then paste update... All, you can also be used to write Word files select the part to save then! See there are a lot of ways you could use to achieve the desired output into. And this time, select the part to save, then add redirection text the. Can use this Right-click technique to paste text directly into a report the Confidence intervals within brackets to! Tables and charts Stata into Word paragraphs and tables ; embed Stata graphs ; Append files! The time until the occurrence of a disease or death, etc Word to PDF to import data from results! `` '' data where the focus is in the post is old and while it still,! Your document very good script in StackOverflow to achieve this which works for me title bar → →. ; Show me only for the file directly with Word, click Edit and then install the library analysis! The outset that you have a table in excel methods for analyzing where. Sure how to create table 1 with study characteristics and to export results to Word format files or or! Individual files or folders or a group of them easy to copy into R. first, then the! A disease or death, etc flextable outputs with images or plots in cells without using { officer.... Recycled to `` '' statistical methods for analyzing data where the outcome variable is the until...