Exportações estatísticas
Six downloads: Excel or CSV, SPSS, Stata, the codebook and the computed metrics, and the choices the export dialog offers.
Answers become useful once they are out of the platform and inside the tool the analysis happens in. Forms offers six downloads, all from Export Data on the Responses tab: an Excel workbook or a CSV file of the responses, an SPSS file, a Stata file, a codebook and a metrics file. Each needs permission to view forms, and each is written to your workspace activity log.
The Excel and CSV download
Export data opens a dialog that asks how you want the table: Excel or CSV; columns named by variable name or by the full question text; choice answers as their labels or as their coded values; and a repeating section either with each entry's answers side by side where the section sits in the form, or as a separate table for each repeating section with one row per entry, linked by response_id. With variable names, every column is named by one, the fixed columns too: response_id, form_version, submitted_at and the rest.
The Excel workbook's header row is styled and frozen so that it stays in view as you scroll. The CSV carries a byte order mark, which is what makes Arabic answers open correctly in Excel rather than as strings of question marks. With separate tables for repeating sections, the CSV download is a ZIP holding one file per table.
An Excel sheet holds at most 1,048,576 rows. When an export has more, the rows continue on a second sheet with the same header row, named after the first with (2), and so on, so the file always opens.
The dialog also decides what is included. Fields from all deployed versions is on unless you switch it off; it changes only which columns appear, every response is always included, and each row says which version of the form it was filled in. Notes are left out unless you ask, because a note records nothing. Why an answer is blank adds a column after each answer saying whether it was skipped by the form's rules, shown and left blank, or not asked in the version that was filled. Multiple choice answers adds a column for each choice in Excel and CSV too; SPSS and Stata have them unless you choose one column only. Include identifying fields brings in names, ID numbers, phones and exact dates of birth, and the answers to questions that identify a person: a phone question, a question linked to an identifying registration field, a question named for a name, an ID number or a date of birth, or one marked Identifies a person in the question editor. Without it those columns are left out, and a download that carries them is recorded in the form's History.
Which responses decides what the file holds, by state: Approved, Awaiting review, Needs fixing, Set aside and Drafts, each with its count. Approved and Awaiting review are ticked the first time, and are exactly the responses every count holds; after that the page ticks what you last chose for the form. Every file ends with review_status, reviewed_by and reviewed_at, so each row says where it stands and who last reviewed it, and the file says which states it holds: on its About this export sheet in Excel, in its first note and the review_status label in SPSS, and in that label in Stata. Rows set aside also carry a response_state column, and in Excel a sheet of their own.
Every download is made from the data as it is at that moment, so two downloads a week apart need not match.
A large file is prepared in the background, so nobody waits on a page while it is built. When a download is too large to prepare while you wait, the page says so and offers to prepare it. You can leave; the page shows the progress, you get an email when the file is ready, and the export page lists your recent files. Only the person who asked can download it, for seven days. Every format, and the Trash export, works this way.
Photos, recordings and files have their own export: Prepare the files, on the export page, makes a ZIP of every file of the responses the data export holds, each named by its response and question, with a list (media_index.csv) of every file, its response, its question and its size, and any file that could not be found marked as missing. It is prepared in the background like every large export; a large form's files come in parts of at most 2 GB, each its own download.
In the data file, a photo, recording or file cell names its files, separated by ' | ', and a signature cell says [signature]. In the final export before a form's data is destroyed or its Trash is emptied, each cell holds the file's path in the archive (attachments/
SPSS, Stata e o arquivo de métricas
Two of the downloads are written for statistics packages. They follow the choices made in the export dialog, so repeating sections, versions and the blank column come out the same way.
O primeiro é gerado para o SPSS e tem a extensão .sav
In it, a choice answer is stored as a number with value labels attached, so the package shows you the choice text rather than the code behind it. Yes and No become 1 and 0, labelled. A multiple choice answer is kept as one column of its values, and beside it each choice has a column of its own, named after the question and the choice, holding 1 when it was chosen, 0 when the question was answered without it, and nothing when it was not answered. A date is a date variable and a date and time a date and time variable, so the package can sort and subtract them. A skipped answer is written as system missing rather than as a blank or a zero, which keeps it out of your averages. A number question is a numeric column even when nobody has answered it yet. A scored form adds score_passed, 1 when the score reaches the form's pass mark and 0 below it. Each column label holds the question text, cut where needed to the 255 bytes SPSS allows.
The SPSS file states that its text is in Unicode, so SPSS shows Arabic names, labels and answers correctly without asking which encoding to use. Its numbers are compressed the way SPSS compresses its own files, and each variable carries a measurement level: nominal for text and labelled choices, scale for other numbers.
O segundo é gerado para o Stata e tem a extensão .dta
It has the same columns, written in the format Stata 14 and later read. Choice answers carry value labels here too, and dates are Stata dates. A code, a 0 or 1 and an identifier take the smallest whole number type that holds them, so the file stays small; a measured number stays a decimal number. Labels are cut to Stata's limits, 79 characters and 320 bytes, because a longer label produces a file Stata will not open.
Um arquivo de métricas, também em CSV, contém os valores calculados em vez das respostas brutas: as pontuações e os valores de ganho que a plataforma calculou para cada resposta.
Como as colunas são nomeadas
In the SPSS file, the Stata file and the codebook, each column is named after the variable name you gave the question, cut to 32 characters where it is longer. A choice's own column adds the choice to the name, with an underscore in SPSS and Stata and a slash in Excel and CSV. Names are kept unique without regard to letter case, and if one has to change to stay unique, the file's notes say so.
The codebook uses the same names, so the data file and the codebook read side by side.
O livro de códigos
The codebook is a CSV with one row per question, and it is the document you hand to a researcher along with the data. Each row gives the variable name, the question's order in the form, the question text, the question type, whether the question was required, its section, the valid values, the value labels, any notes and the codes used for missing values. The question text and the value labels are given in English and Arabic, and in every other language the form's content is written in.
Ele segue as convenções de rotulagem esperadas pelo pacote haven do R, de modo que um livro de códigos e um arquivo de dados podem ser lidos juntos no R sem que ninguém precise reescrever nenhum dos dois manualmente.
Abrir os arquivos
The SPSS and Stata files are checked by reading them back with independent readers, which confirms their columns, types and labels. That check does not open them inside SPSS or Stata themselves.
Open the codebook beside the data and a researcher who has never seen your form can tell what every column holds.
Se as bibliotecas que a plataforma usa para gerar esses dois formatos não estiverem disponíveis, o download informará que falta uma dependência, em vez de entregar um arquivo que apenas parece correto.