Learn R Programming

surveyeditor (version 1.0)

surveyeditor-package: \Sexpr[results=rd,stage=build]{tools:::Rd_package_title("#1")}surveyeditorGenerate a Survey that can be Completed by Survey Respondents

Description

\Sexpr[results=rd,stage=build]{tools:::Rd_package_description("#1")}surveyeditorHelp generate slides for surveys or experiments. The resulted slides allow the subject to respond with the use of the mouse (usual keyboard input is replaced with clicking on a virtual keyboard on the slide). Subjects' responses are saved to the user- specified location in the form of R-readable text file. To allow flexibility, each function in this package generates a particular type of slides thus general R function writing skills are required to compile these edited slides.

Arguments

Details

The DESCRIPTION file: \Sexpr[results=rd,stage=build]{tools:::Rd_package_DESCRIPTION("#1")}surveyeditorThis package was not yet installed at build time.

\Sexpr[results=rd,stage=build]{tools:::Rd_package_indices("#1")}surveyeditor Index: This package was not yet installed at build time.

This package aims to serve as an editor for generating slides for surveys or experiments. The resulted slides allow the subject to respond with the use of the mouse (usual keyboard input is replaced with clicking on a virtual keyboard on the slide). Subjects' responses are saved to the user- specified location in the form of R-readable text file. To allow flexibility, each function in this package generates a particular type of slides thus general R function writing skills are required to compile these edited slides.

Main features include:

  • Edit texts in each slide as well as their font size and colour.
  • Insert tables and plots (point, line and histogram).
  • Allow time-restricted display (only for slides not requiring responses).
  • Different types of responding such as numerical input, multiple choices (can have more than one selections), Likert scale type questions, number line drawing type question (eg, used in Kanayet & Opfer 2009 and Siegler & Opfer 2003) and Gabor-Granger method (Gabor & Granger 1966, 1979).
  • Automatically save responses to a file to a user-specified location in the form of R-readable text file.

There are in general 4 functions in this package: cover : serves as the front or back cover page of the survey. For example, you may wish to have a greeting slide before the survey begins. identity : serves as gathering the id of the subject. Automatic id generation is also allowed. read.write : serves as saving the responses to a nominated file. slide : generates slides to be displayed to the subjects as well as allowing the subjects to respond to designated questions. This is the main function in this package.

The editor of the survey should write a function (a compiler) to compile different functions into a meaningful survey. A recommended format is shown below, compiler<-function(){ cover identity slide slide ... read.write cover} The first cover serves as the front page then the identity of the subject is configured in identity. slide is the main part of the survey that display information and allow the subject to respond. Responses are then saved to the nominated file through the read.write function. The survey ends in the second cover informing the subject the completion. More specifically, the below is an example, sample.survey<-function(){ link<-"C:" repeat { cover(type="front") id<-identity(link=link, ...) Q1<-slide(id=id, ...) Q2<-slide(id=id, ...) ... read.write(rbind(Q1,Q2,...),link=link) cover(type="back") } } The repeat is used to let the next subject take the survey and the response will be incorporated into the user-specified location.

Notes: Here is some recommendations for the best performance.

  • The graphic device should be adjusted to full-screen size or some texts may appear outside the box.
  • It is a good idea to inform the subjects (preferably by stating in a slide titled "Instructions") that all responses of the previous slides cannot be altered and that clicking the green button in any slide will proceed to the next slide allowing no further alteration to the response. In fact this is the reason only certain buttons are green.

References

Gabor, G & Granger, CWJ (1966) "Price as an indicator of Quality: Report on an Enquiry", Economica, 33(129), pp.43-70. Gabor, G & Granger, CWJ (1979) "The Attitude of the Consumer to Prices", Management Decision, 17(8), pp.619-634. Kanayet, F & Opfer, J (2009) "Why Children's Number-line Estimates Follow Fechner's Law", Cognitive Science Conference Proceedings 2009, pp.1936-41. Siegler, RS & Opfer, JE (2003) "The Development of Numerical Estimation: Evidence for Multiple Representations of Numerical Quantity", Psychological Science, 14(3), May 2003, pp.237-243.