The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1

THEMA: variable taking different values for different groups of subjects

variable taking different values for different groups of subjects 3 Monate 2 Wochen her #92348

  • pedrorobalo
  • pedrorobalos Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 4
  • Karma: 0
Dear all,

This must be relatively simple to do this but I cannot figure how.

Suppose I want 100 subjects (and not more) to answer my survey. I want to create a variable ('var') that takes a value for 50 of them (e.g., var=1), and a different value for the remaining 50 (e.g., var=2). In other words, for 50 of the 100 subjects var=1 and for the remaining 50 var=2.

I don't want anything probabilistic, I want to have exactly 50 subjects for which var=1 and exactly 50 for which var=2.

The two groups of 50 can be randomly determined or determined by ResponseID (or some analogous variable).

Thank you very much for your help. Let me know if I haven't been clear enough.
Letzte Änderung: 3 Monate 2 Wochen her von pedrorobalo.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: variable taking different values for different groups of subjects 3 Monate 2 Wochen her #92403

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2870
  • Dank erhalten: 428
  • Karma: 246
You won't be able to use the response id (SAVEDID} because incomplete response sets get IDs.

I think you will need to make an AJAX call to a remote script that queries the database to find the number of completed surveys.
Cheers,
Tony

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
Moderatoren: DenisChenu, ITEd
Ladezeit der Seite: 0.165 Sekunden
Donation Image