Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > How can I create dummy variables in Filemaker Pro?

How can I create dummy variables in Filemaker Pro?
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2003
Status: Offline
Reply With Quote
Nov 13, 2006, 10:23 AM
 
I'm considering using Filemaker to manage a whole lot of data collected from questionnaires for my thesis. For me Filemaker is more robust and nicer to use than Excel, but I haven't figured out how to create dummy variables, which is something I'll need for statistical analysis later.

Here's the deal: say I have a question with three answers, yes, no, and maybe. I can create a field with radio buttons for yes, no, and maybe, but rather than having a bunch of yes's, no's, or maybe's in the database, I'd like three different fields for the same question such that if I select yes there's a one in that field, and zeros in the other two.

I know I could do all this in Excel, but with 125 responses per questionnaire it's easier to enter data in a nice Filemaker layout using radio buttons and check boxes to speed things up.

Alternatively, is there any way to set a radio button to display one thing to the person entering data but to save a different value in the database? Such as, Yes saved as 1, No saved as 0, etc?

Any suggestions will be most appreciated!
(Last edited by yally04; Nov 13, 2006 at 10:35 AM. (Reason:Extra question))
     
Mac Elite
Join Date: May 2001
Location: Manchester, UK
Status: Offline
Reply With Quote
Nov 13, 2006, 05:59 PM
 
It would be quite simple to do this. One way would be to have a field (let's call it 'Response') with radio button as you suggest with 'yes', 'no' and 'maybe' as the options. You could then set up three further fields called 'Yes flag', 'No flag' and 'Maybe flag' (or whatever). These should be set as calculation fields which look at the Response field. So, the calculation for 'Yes flag would be:

If(Response="Yes",1,0)

(Actually I forget the exact syntax for if...then.... statements in Filemaker, but you get the idea. ) Repeat for the other two calculation fields. I'm not quite sure why you would want to do this though!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:21 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2