SPSS - Type of Question - spss

I resolved the following question but
I have another issue. I would like to
analyse "Likert Scale" questionaire
which is measured 1 to 5 ( agree,
strongly agree etc ). I tried many
ways but I didn't combine all results.
Have you got any idea to analyze
likert scale?
Does anybody help us to define following type of question in SPSS variable view?
( looks like array question, user answers non unique which they can enter text )
QUESTION 1:
Allows a table of text inputs
+----------------------------------------------+
| Speed Design Accuracy |
+----------+---------+----------+--------------+
| Google | | | |
+----------+---------+----------+--------------+
| Yahoo | | | |
+----------+---------+----------+--------------+
| Bing | | | |
+----------+---------+----------+--------------+

I had the same problem. Fortunately, it is easy to solve ;)
If you have your data in the table - you have to "restructure" it (Menu - Data - Restructure). This option allows you to create multidimansional variables. You can find some tutorial on youtube for data restructuring.
In your case, you have to make it manually. You just repeat your identifying variable accordng to the amount of likert scale questions. Let's assume you have 3 questions to "Speed", 3 questions to "Design", and 3 questions to "Accuracy". Your table should look like this:
+----------------------------------------------+
| Speed1 Speed2 Speed3 | Duration1 | Duration2 | ...
+----------+---------+----------+--------------+
| Google | | | | | |
+----------+---------+----------+--------------+
| Yahoo | | | |
+----------+---------+----------+--------------+
| Bing | | | |
+----------+---------+----------+--------------+
You can restructure the data later to perform statistical analysis.
In the case of repeated measurement (e.g. you asked your Likert scale question in the same company 3 times over time), your table might look like this:
+----------------------------------------------+
| Speed1 Speed2 Speed3 | Duration1 | Duration2 | ...
+----------+---------+----------+--------------+
| Google | | | | | |
+----------+---------+----------+--------------+
| Google | | | |
+----------+---------+----------+--------------+
| Google | | | |
+----------+---------+----------+--------------+
| Yahoo | | | |
+----------+---------+----------+--------------+
| Yahoo | | | |
+----------+---------+----------+--------------+
| Yahoo | | | |
+----------+---------+----------+--------------+
| Bing | | | |
+----------+---------+----------+--------------+
...
I hope, it helped!
Best,
Eugene

I am not sure I know what you are asking, but I believe you are looking for some guidance as to what the "dataset" might need to look like. If you run the following syntax, you should get a better idea of how I would structure it.
DATA LIST LIST (",") / browser (A30) type (A30) score.
BEGIN DATA
Google, Speed, 123
Yahoo, Speed, 34
Bing, Design, 23
Google, Accuracy, 231
Yahoo, Design, 12
END DATA.

Likert scale data should be analyzed using non-parametric methods. Two ways to handle this.
1). Rank the cases and then perform ANOVA on the ranked values
2). Perform Kruskal Wallis on the Likert scale data
Regards

Related

Union Vertical Blending in Data Studio

I want to blend several tables into 1 table. All of the tables have the same column so I'm thinking to UNION vertical all of the tables.
My data source is Google Sheets/ Spreadsheets.
The data will look like this:
Table1
| Type | Object | Amount |
|:---- |:---------:| ------:|
| Tech | PC | $100 |
| Tech | Keyboard | $50 |
| Tech | Mouse | $60 |
Table2
| Type | Object | Amount |
|:----- |:-----------------------:| ------:|
| Sales | Sales Incentives | $1000 |
| Sales | Meeting with Client | $400 |
| Sales | Visiting stores | $80 |
While the desired output would be:
| Type | Object | Amount |
|:----- |:-----------------------:| ------:|
| Sales | Sales Incentives | $1000 |
| Sales | Meeting with Client | $400 |
| Sales | Visiting stores | $80 |
| Tech | PC | $100 |
| Tech | Keyboard | $50 |
| Tech | Mouse | $60 |
If you can't see the table you can see the picture here
enter image description here
Anyone can help me with this? Thank you
I just got the the answer:
You can use the blending FULL OUTER JOIN and use the formula:
COALESCE(Name (Source #1),Name (Source #2),Name (Source #3))
You can see full information here
Thank you for Mehdi Oidjida for the help.

Visualising the motion of multiple robots

I am trying to add multiple robot instances and visualising their motions. I tried a couple of ways to do this and I ran into errors/issues. They are as follows:
I tried adding another model instance after the system is created.
parsers::urdf::AddModelInstanceFromUrdfFileToWorld(
FindResourceOrThrow("path/CompassGait.urdf"),
multibody::joints::kRollPitchYaw, tree.get());
parsers::urdf::AddModelInstanceFromUrdfFileToWorld(
FindResourceOrThrow("path/quadrotor.urdf"),
multibody::joints::kRollPitchYaw, tree.get());
As expected, there are two robots which are visible in the visualiser and there are 26 output ports in the system. But i am unable to visualise the required motion by the quadrotor. It seems to be following the x,y,z and roll pitch and yaw derivatives given as an input for the compass gait's output port. Is this an expected behaviour?
I experience a similar thing when I add 2 compass gait models and try to make them follow the same path. Even though I give the ports 14-27 the same inputs as i give to 0-13. The second robot is stuck near the origin while the first one moves fine as expected without any issues.
I needed some help or maybe some examples where I can get a better idea about visualising the motion for multiple robots.
[Updated] Please see note at the bottom.
drake::systems::DrakeVisualizer (which I assume you're using to publish your visualization messages) was designed to be connected to the state_output_port of drake::systems::RigidBodyPlant. According to the documentation for RigidBodyPlant,
The state vector, x, consists of generalized positions followed by generalized velocities.
That is, the generalized positions for all model instances come before the generalized velocities. When working with RigidBodyPlant and DrakeVisualizer this ordering is handled automatically.
From your question, however, I gather that you have separate, specialized systems for your quadrotor and compass-gait models (as per their respective examples). Each of these systems outputs its state as [q, v], where q is the generalized position vector and v is the generalized velocity vector. In that case you will need to use drake::systems::Demultiplexer and drake::systems::Multiplexer to split the outputs of the quadrotor and compass-gait systems and reassemble them in the required order:
+---------------+ +-------------+ q +-------------+
| | | +-------->+ |
| Compass-gait +-->+Demultiplexer| | |
| | | +-----+ v | |
+---------------+ +-------------+ | | |
+----->+ | +-----------------+
| | | | | |
| | | Multiplexer +-->+ DrakeVisualizer |
q| | | | | |
| +-->+ | +-----------------+
+---------------+ +-------------+ | | |
| | | +--+ | |
| Quadrotor +-->+Demultiplexer| | |
| | | +---+---->+ |
+---------------+ +-------------+ v +-------------+
Note: RigidBodyPlant and associated classes are being replaced by drake::multibody::MultibodyPlant and drake::geometry::SceneGraph. See run_quadrotor_lqr.cc for an example of using these new tools with a specialized plant.

Return MAX value with VLOOKUP from list

I have a Google sheet with data of different players attacks and their corresponding damage.
Sheet1
| Player | Attack | Damage |
|:------------|:-----------:|------------:|
| Iron Man | Melee | 50 |
| Iron Man | Missile | 2500 |
| Iron Man | Unibeam | 100 |
| Superman | Melee | 9000 |
| Superman | Breath | 200 |
| Superman | Laser | 1500 |
In my second sheet, I want to list each player and display their best attack and the corresponding damage. Like this:
Sheet2
| Player | Best attack | Damage |
|:------------|:-----------:|------------:|
| Iron Man | Missile | 2500 |
| Superman | Melee | 9000 |
I have tried to add the following in the damage column (third column) of Sheet2:
=MAX(IF(Sheet1!A:A=A2;Sheet1!C:C))
But I get 9000 for Superman and 0 for Iron Man. For best attack (second column) I guess MAX should be used together with VLOOKUP, but I don't know how to apply it.
Edit:
=ArrayFormula(MAX(IF(Sheet1!A:A=A3;Sheet1!C:C))) seems to fix the first issue. Getting correct values in the damage column (third column). But still don't know how to apply this to return which is the best attack.
You could use Filter.
Damage:
=MAX(FILTER(Sheet1!C:C,Sheet1!A:A=A2))
Then Best Attack:
=JOIN(",",FILTER(Sheet1!B:B,Sheet1!A:A=A2,Sheet1!C:C=C2))
The Join will join two or more if there are more attacks with the same damage.
I am considering the range A2:C.
Try this formula.
=sortn(sort(A2:C,3,0),9^9,2,1,0)
Screenshot

Concatenating nodes from a query into a single line for export to csv in Neo4J using Cypher

I have a neo4J graph that represents a chess tournament.
Say I run this:
MATCH (c:ChessMatch {m_id: 1"})-[:PLAYED]-(p:Player) RETURN *
This gives me the results of the two players who played in a chess match.
The graph looks like this:
And the properties are something like this:
|--------------|------------------|
| (ChessMatch) | |
| m_id | 1 |
| date | 1969-05-02 |
| comments | epic battle |
|--------------|------------------|
| (player) | |
| p_id | 1 |
| name | Roy Lopez |
|--------------|------------------|
| (player) | |
| p_id | 2 |
| name | Aron Nimzowitsch |
|--------------|------------------|
I'd like to export this data to a csv, which would look like this:
| m_id | date | comments | p_id_A | name_A | p_id_B | name_B |
|------|------------|-------------|--------|-----------|--------|------------------|
| 1 | 1969-05-02 | epic battle | 1 | Roy Lopez | 2 | Aron Nimzowitsch |
Googling around, surprisingly, I didn't find any solid answers. The best I could think of is so just use py2neo and pull down all the data as separate tables and merge in Pandas, but this seems uninspiring. Any ideas on how to do in cypher would be greatly illuminating.
APOC has a procedure for that :
apoc.export.csv.query
Check https://neo4j-contrib.github.io/neo4j-apoc-procedures/index32.html#_export_import for more details. Note that you'll have to add the following to neo4j.conf :
apoc.export.file.enabled=true
Hope this helps.
Regards,
Tom

Keeping JavaScript state in an ePub's spine

Is it possible to keep code state across pages in an ePub? More specifically do readers like iBooks allow this type of state?
spine.js
+---------+----------+
| | |
+--------+ +--------+ +--------+
| Page 1 | | Page 2 | | Page |
| Quiz1 | | Quiz2 | | (n) |
| | | | | Result |
| | | | | |
+--------+ +--------+ +--------+
In this example, the last page could contain a score but state is required. WebSQL is out of the question since it's not supported by webkit ereaders and websockets demand a connection. Any thoughts?
No. Each HTML file is independent. To share information, you'll need to use some kind of local storage such as window.localStorage, but it's very hard to find out what device supports what level of HTML5.
UPDATE: This thread says localStorage is in fact supported.

Resources