Separating a string of comma separate values in SPSS [duplicate] - spss

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Analyze multiple response field from google doc form
The data get's produced by Google Forms.
The user has the ability to check for option in a multi-checkbox:
"Fishing"
"Boating"
"Hiking"
"Climbing"
If the user checks "Fishing" and "Boating" the result I get is formatted as:
"Fishing,Boating"
How do I reformat that data in a way where I can easily access whether a particular user has check each individual box?
What's the easiest way to do this in SPSS?
This problem came up over at: http://lesswrong.com/r/discussion/lw/f0r/2012_less_wrong_census_survey_call_for/7nob

You could parse the data with string-math in SPSS.
http://www.ats.ucla.edu/stat/spss/modules/functions.htm
Section 4 gives some examples. This would allow you to break them into their own variables and either keep it as String or change it to Binary.

Related

Microsoft graph headers value "HonorNonIndexedQueriesWarningMayFailRandomly" [duplicate]

This question already has answers here:
Provide the 'allowthrottleablequeries' preference to allow this
(2 answers)
Microsoft Graph HonorNonIndexedQueriesWarningMayFailRandomly Error when filtering SharePoint Online lists
(2 answers)
Closed 1 year ago.
Hello,
if you want make a query on sharepoint ListItem using $filter clouse on non indexed field so I need to add on the header the key/value:
prefer HonorNonIndexedQueriesWarningMayFailRandomly
I have not found documentation regarding this option and I do not know the consequences:
sometime the query fails with error?
sometime the query return wrong resultset?
resultset? how I can know if the result are ok or with error?
Thanks
Lorenzo
Trento - Italy

How to Query a column where numbers are mixed with text (GOOGLE SHEET) [duplicate]

This question already has answers here:
Query is ignoring string (non numeric) value
(2 answers)
Closed 5 months ago.
I'm using a query to pull data from a multi-sheets in Google Spreadsheet that is populated by a Google Form. If the form has only numbers, there is no problem. However, if there's a mixed of text and number then it did not work.
=QUERY({Sheet1!A:S;Sheet2!A:S},"SELECT* WHERE Col4<>''",0)
EDIT: Added the second one here:
=QUERY(Sheet2!A:S,"SELECT A,C,D,E,F,G,H,I,J,K,L,R WHERE G IS NOT NULL ORDER BY G LABEL R 'FRUIT'",TRUE)
Regards,
Yes, this is how QUERY works. It only pulls the most frequent data type per column. To pull mixed data types, you can use FILTER:
=FILTER({Sheet1!A:S;Sheet2!A:S},{Sheet1!D:D;Sheet2!D:D}<>"")

I want to find data from firebase data base like this by using query. if input are matched with stored data then show mobile number [duplicate]

This question already has answers here:
Query based on multiple where clauses in Firebase
(8 answers)
Closed 3 years ago.
I want to find data from firebase data base like this if(name=="name 1" && age == "age 1" && birth date =="birth date 1"). then show mobile number , how can i face data from firebase by and check itenter image description here
Firebase Real-time Database does not support multiple equal queries so at a time you can use only one equalTo() query of the firebase database so try to apply the field here which breaks your data in the best manner so that you receive the least data to process at your side.
And finally you can apply your rest two equal queries at the backend in the received data to get the desired result.

Multiple response crosstabs/frequencies based on categorical variable in SPSS

I've just started using SPSS after using R for about five years (I'm not happy about it, but you do what your boss tells you). I'm just trying to do a simple count based on a categorical variable.
I have a data set where I know a person's year of birth. I've recoded into a new variable so that I have their generation as a categorical variable, named Generation. I also have a question that allows for multiple responses. I want a frequency of how many times each response was collected.
I've created a multiple response variable (analyze>multiple response > Define variable sets). However, when I go to create crosstabs, the Generation variable isn't an option to select. I've tried googling, but the videos I have watched have the row variables as numeric.
Here is a google sheet that shows what I have and what I'm looking to achieve:
https://docs.google.com/spreadsheets/d/1oIMrhYv33ZQwPz3llX9mfxulsxsnZF9zaRf9Gh37tj8/edit#gid=0
Is it possible to do this?
First of all, to double check, when you say you go to crosstabs, is this Analyze > Multiple Response > Crosstabs (and not Analyze > Descriptive Statistics > Crosstabs)?
Second, with multiple response data, you are much better off working with Custom Tables. Start by defining the set with Analyze > Custom Tables > Multiple Response Sets. If you save your data file, those definitions are saved with it (unlike the Mult Response Procedure).
Then you can just use Custom Tables to tabulate mult response data pretty much as if it were a regular variable, but you have more choices about appropriate statistics, tests of significance etc. No need in the CTABLES code to explicitly list the set members.
Try CUSTOM TABLES, although this is an additional add-on modules that you need to have a licence for:
CTABLES /TABLE Generation[c] by (1_a+ 1_b + 1_c)[s][sum f8.0 'Count'].

Convert text in a cell into a number

I'm creating a Google Form to make digital multiple choice tests. The answers that are given will be sent to Google Sheets. The answers are multiple choice so the data that I get consists of a limited number of possible answers.
In this spreadsheet I want to add points (like 3,3 or 5 or 10 or 0) to the answers that are given depending on whether the answer is correct (or partially correct).
In the example spreadsheet every row consists of all the answers that are given by the student. This is automatically imported like this when a student sends in the form (in this testfile I have only one question). In B30:B33 I have put the four answers the multiple choice test has for this one question and in an adjacent column the number of points each answer is worth. I want to connect the points to the answer that is given in D2 (which is a wrong answer and should result in 0).
How can I do this?
With enough responses your range of result scores is likely to get in the way where it is so I suggest moving it to another sheet and giving it a name, such as NamedRange1. But I would swap over the columns first (answers to the left of their scores) - and replacing the 0s to suit with 3,3 5 and 10.
Then in your form responses sheet Formulierreacties 1:
=vlookup(D2;NamedRange1;2;0)

Resources