README.md

Exams Database Manager EDM

English | Portuguese-Brazil

Introduction

The EDM (Exams Database Manager) package was developed using the shiny package of the software R. To learn more about package shiny visit the official page https://shiny.rstudio.com/.

The goal is to provide a graphical interface in html to generate proofs in PDF and XML (MOODLE format) through a manageable question bank. Still, it is possible to program questions of the most varied types as: text essay, numerical essay, single choice, multiple choice, association and mixed (combining some of the previous options).

Another interesting aspect of the package is the possibility of generating tests using the question bank of other teachers, significantly increasing the options for a teacher to prepare a test. Imagine that the EDM package contains 5 question banks in your area of ​​expertise, including yours. Imagine that each question bank has 10 questions. Then, when preparing a test you will have a total of 50 questions. That's why it's so important that you share your question bank. Below you will find instructions on how to do this.

Prerequisites for installing the EDM package

You must first install the R software. There are several videos on youtube teaching how to do this. A video suggestion is https://www.youtube.com/watch?v=HNJpWe_kh8Y.

Also install the devtools package, as we will need its install_github function to install the EDM package. If you do not know how to do this, open the program R and type in the console:

install.packages('devtools')

Or watch the following video: https://www.youtube.com/watch?v=P2bE-HIng08.

Installation prerequisites to generate PDF proofs

The PDF files generated by the EDM package use the LaTeX program, which is a very high-level system used for preparing documents.

Therefore, if you do not have this program installed on your machine, install the package tinytex of the R software and run the following commands :

library(tinytex)
install_tinytex()

Depending on the speed of your internet, the mentioned procedure will take a little time. Then, wait until the installation is complete.

Installation prerequisites for generating XML proofs

To generate the proofs in XML, it is necessary to have installed the program pandoc. If the R program is open after the installation is complete, close it and restart to recognize pandoc.

Installation of the EDM package

Open the R program and enter the following commands on the console:

library(devtools)
install_github('ivanalaman/EDM', upgrade = "never", force = TRUE)

If you want to create a clone of this repository and install the EDM package from this clone, then in a terminal emulator do:

git clone git://github.com/ivanalaman/EDM.git

or

git clone https://ivanalaman@github.com/EDM.git

Then, run the following commands:

R CMD check EDM

R CMD build EDM

R CMD INSTALL EDM_X.X-X.tar.gz

Using the EDM package

Open the R program and enter the following commands on the console:

library(EDM)
startEDM()

You should open a page in html in your default browser as suggested in the following figure:

Explore the app by browsing the different menus. Generate a test in PDF format to test whether the prerequisites have been successfully installed. Look the following picture:

If everything went well, you should open a popup informing you where the files were saved.

Two files are created. One is for feedback and the other for proof. By default, the file is saved inside the EDM folder created in your working directory. In windows for example, you will find the folder in the following path: C:\Users\Yourname\Documents\EDM. In Linux the path would be: /home/user/EDM.

If there is no file in the folder, an error probably occurred due to a previous installation.

If you are a LaTeX user and have already installed TeXLive or MiKTeX and still had an error generating the PDF, perform the steps in the section Installation prerequisites to generate the PDF proofs.

If the problem still persists, do not hesitate to send an email to iballaman@uesc.br for help.

Creating a question bank

After you have explored the application, the time has come for you to create your own question bank to use it in preparing your exams. The figure below shows the procedure.

After creating the question bank, follow the instructions in the questionbankEDM repository from github.

Programming issues

The EDM package has a specific menu for elaborating questions, both interactive and non-interactive. For those who are not familiar with LaTeX codes, you can use the interactive interface. For those familiar with LaTeX, you can use the non-interactive menu.

Text type essay question

This type of question has only one answer, which in this case is a text. It is recommended that the answer be as objective as possible. Let's look at an example:

  1. Define probability!
  2. Answer: Probability is a number that expresses the chance that a certain event will happen.

The elaboration of the example above using the application can be seen in the following figure:

Numerical type essay question

The idea is the same as the text-based essay question, however, the answer is a numerical one. Example:

  1. What is the average of a sample composed of the following values: 1,2,3,4,5?
  2. Answer: 3

Realize that the value is unique, without any text. If it is a decimal number, then use a dot as a separator unit for the entire part of the fractional part (2.25 for example).

Single choice question

It is also known as the objective question, as there is only one correct question. Example:

  1. Which statistical measure is influenced by extreme values?
    1. Average
    2. Median
    3. Fashion
    4. Amplitude
    5. No alternative is correct
    Answer: Alternative a

Multiple choice question

In this type of question we can have more than one correct question, all correct or all false. Also known as a true or false question. Example:

  1. Tick the real alternative (s) on the subject of probability.
    1. It is a number that expresses the chance that a certain event will occur.
    2. Answer: True
    3. Let A be an event defined in a sample space $\omega$ and $\bar{A}$ the complementary event, so P(A) = P($\omega$) - 1.
    4. Answer: False
    5. Let A and B be two mutually exclusive events, so P (A$\cup$B) = P (A) + P (B).
    6. Answer: True
    7. Let A and B be two independent events, so P (A $\cap$B) = P(A) $\cdot$ P(B).
    8. Answer: True
    9. Let A and B be any two events, then P(A/B) = P(A $\cup$ B)/P(A).
    10. Answer: False
    11. João told Raimundo that his chance of winning in the mega-sena is -35%, as he is a very unlucky guy.
    12. Answer: False
    13. Manoel lives in Manaus and said he always takes an umbrella when he leaves for work, as the chance of rain is 100%.
    14. Answer: False

Associative question

The purpose of this question is to establish a relationship between two lists. Example:

  1. Classify the variables below as discrete or continuous.
    1. Discrete
    2. Continuous

  1. Number of children
  2. Answer: 1
  3. Number of employees (un.)
  4. Answer: 1
  5. Weight (kg)
  6. Answer: 2
  7. Height (m)
  8. Answer: 2
  9. Price of a product (R $)
  10. Answer: 2
  11. Biochemical oxygen demand (mg / L)
  12. Answer: 2
  13. pH
  14. Answer: 2

Mixed type question

This type of question involves subquestions that can be of different types. In this example, we have the combination of a text-type alternative and a numeric-type alternative.

  1. Considere os seguintes dados.
  2. 1,2,3,4,4,5,5,5,6,6,6,6

    1. Which measure of central tendency has the greatest value?
    2. Answer: Mode
    3. What is the average value?
    4. Answer: 4.42

Question with figure

If the question has a picture, it is possible to add it by placing the full address where the picture is. If you do not know how to copy the complete file address, see the figure below.

In the case of windows, you must change the "\" by "/" in the address copied from the previous image.

I suggest that you create a folder called "pictures" in the same directory where the question file is. See the figure below.

The following figure shows the elaboration of a text-type question with a figure.

Saving the questions in the correct directory

After elaborating a question, the file must be saved in the correct directory so that the application can find such files. Let's assume you created your question bank (IBA for example), your subject (estatistica_basica) and a subject (introduction). Assuming that the question is of an objective and easy level, then the file "minhaquestao.Rnw" should be saved in the directory:

Don't forget to name the files properly. See the topic Standardizing file names.



ivanalaman/EDM documentation built on Sept. 23, 2021, 5:21 p.m.