In my survey data I have two variables: One is an ordinal variable with 5-scale scoring from Agree to Disagree. My second variable is an nominal variable where the participants had to choose from 7 different options. I now want to test if people who showed strong agreement to the ordinal variable are more likely to choose one specific option of the nominal variable. Is there any method to use for this situation? Sorry, if this has been asked many times already.
I've already read all the pages in this site trying to find the answer to my problem but no one seems to be the right one form me...  First I explain you the kind of data I'm working with...  Let's say that I have an array vector with several names of city, one for each of 300 users. I also have another array vector with scores response to a survey of each user or a continuous value for each user.  I would like to know if exist a correlation coefficient that compute the correlation between these two variables so, between a nominal and a numeric/continuous or ordinal variables.  I've searched on the Internet and in some pages they suggest to use the contingency coefficient or Cramer's V or Lambda coefficient or Eta . For each of this measure the just say that they could be applied for such data in which we have a nominal variable and interval or numerical variable. The thing is that searching and searching, trying to understand every one of them, sometime is written or watching the examples that they are reasonable to use them if you have dichotomous nominal variable, except for Cramer's V, other time is not written any requirement for the type of data. A lot of other pages say that is right to apply regression instead, that is right, but I would just simply like to know if there is a coefficient like pearson/spearman for this kind of data.  I also think that is no so properly to use Spearman Correlation coeff since the cities are not sortable.  I have also built the function of Cramer'sV and Eta by myself (I'm working with Matlab) but for Eta they don't talk about any p-value to see if the coefficient is statistically significant...  In the matlabWorks site there is also a nice toolbox that says to compute eta^2 but the kind of input it needs is not understandable.  Is here someone that have done a test like mine? If you need more detail to understand the kind of data I'm using just ask me and I'll try to explain you better.
Since canonical is  Ubuntu One, what are the possible alternatives?  I currently use Ubuntu One as a backup service for my Documents folder and various other folders I deem important. Of course I have backups on an external hard drive as well, but nevertheless, I find Ubuntu One to be very useful. What I'm especially looking for is a cloud service that does not need a special folder (such as a dropbox or google drive folder); something that is able to integrate into my own file system and syncs just any folder I want to.   I am aware that this question is rather subjective, but I do guess many people who have used Ubuntu One are now in the dark. Let A,B be in $M_{mxn}(\mathbb{R})$  Prove that if rank(A + B) = rank(A) + rank(B), then col(A) ∩ col(B) = {0}  I started with a proof by contradiction, since we know that rank(A + B) ≤ rank(A) + rank(B). I assume that if rank(A + B) &lt; rank(A) + rank(B), then col(A) ∩ col(B) = {0}. I realize that we don't have to do the > case. However I am a little confused on how to show col from rank. I am having a strange problem in ArcGIS Toolbox.  I am trying to use the  tool from ArcToolbox. When I open the tool, there is no possibility to input Simplification Tolerance. Please see the attached image.  I can run the tool as a batch and from the Python window without any problem.  I am using ArcGIS 10(Editor) with Service Pack 5 on Windows 7 64Bit (English) and Windows Server 2008 64Bit (German). On both machines, I have the same problem. Any ideas?    I have reinstalled the software but the problem remains. Purge unused data (e.g. particle system, or groups) by script How can I completely remove a objects (e.g. particle system or groups used in particle systems) in blender using python?  The problem is this: I have a script, with which I create a scene (e.g. adding some normal objects and some group of objects with a particle system). For a research study I would like to repeat that that several times, without restarting blender. So I can create a scene, delete everything, e.g. with a script like this:  import bpy scn = bpy.context.scene for obj in scn.objects:     obj.select = True bpy.ops.object.delete()   If I rerun the script to recreate the scene with objects using particle system, the latter is not shown in the scene anymore (only the placeholders of the particle system). Now I'm not sure where exactly the problem lies, but I guess not everything is immediately deleted, running the script above. Only the startup of blender helps (but that's not what I want) or pushing the purge button. The purge button seems to start the command:  bpy.ops.outliner.orphans_purge()   But I can't get this piece of code to run in the console. It says that "the context is incorrect". Is there a way to purge the unused data by python script? Thanks a lot for any help. Few days ago I got sample of toroidal core from my friend. I don't know any technical details of core just know OD-10cm, ID-6cm, height- 5cm and wet about 1.845 kg(M4 grade CRGO). I want to make toroidal transformer using this core but how to calculate core area and maximum VA capacity of core.I take some photos and attach. Problem:  Ajax suggest-search on [n] ingredients in recipes. That is: match recipes against multiple ingredients.  For instance: SELECT Recipes using "flower", "salt" would produce: "Pizza", "Bread", "Saltwater" and so forth.  Tables:  Ingredients [     IngredientsID INT [PK],     IngredientsName VARCHAR ]  Recipes [     RecipesID INT [PK],     RecipesName VARCHAR ]  IngredientsRecipes [     IngredientsRecipesID INT [PK],     IngredientsID INT,     RecipesID INT ]   Query:  SELECT     Recipes.RecipesID,     Recipes.RecipesName,     Ingredients.IngredientsID,     Ingredients.IngredientsName FROM     IngredientsRecipes      INNER JOIN Ingredients     ON IngredientsRecipes.IngredientsID = Ingredients.IngredientsID      INNER JOIN Recipes     ON IngredientsRecipes.RecipesID = Recipes.RecipesID WHERE     Ingredients.IngredientsName IN ('salt', 'water', 'flower')   I am currently constructing my query using ASP.NET C# because of the dynamic nature of the WHERE clause.  I bites that I have to construct the query in my code-layer instead of using a stored procedure/pure SQL, which in theory should be much faster.  Have you guys got any thoughts on how I would move all of the logic from my code-layer to pure SQL, or at least how I can optimize the performance of what I'm doing?  I am thinking along the lines of temporary tables:  Step one: SELECT IngredientsID FROM Ingredients and INSERT INTO temp-table  Step two: SELECT RecipesName FROM Recipes joined with IngredientsRecipes joined with temp-table.IngredientsID Local colormaps in global coordinate system I am trying to get a surface graph with two colormaps.  Instead of using the full Z range i want to give the first surface its own colormap  and the second surface should receive its own colormap too (it may be even the same)... however the current version takes the full range of Z-Data and calculates the colormap. Is there any way?  \begin{tikzpicture}     \begin{axis}[grid = major, colormap={bw}{gray(0cm)=(0); gray(1cm)=(1)}, view={-30}{15}]   \addplot3[surf]    table     {DATA1.dat};   \addplot3[surf]    table     {DATA2.dat};  \end{axis} \end{tikzpicture}   Right now it looks like that:   I want each of the surface to be scaled individually... just to see more clearly how the amplitude changes :)  Any ideas?  Thanks, Alex Truncate (not round) decimal places in SQL Server I'm trying to determine the best way to truncate or drop extra decimal places in SQL without rounding.  For example:  declare @value decimal(18,2)  set @value = 123.456   This will automatically round @value to be 123.46, which is good in most cases.  However, for this project, I don't need that.  Is there a simple way to truncate the decimals I don't need?  I know I can use the left() function and convert back to a decimal.  Are there any other ways? Blacklight CFL Bulb Effect? I have been searching everywhere, and I can't find an answer so I'm coming here!  I'm trying to create a CFL Blacklight bulb. I've attached a couple images below of what I've tried to make. I'd love to have an effect like this:    Does anyone know how to recreate this? It seems like the color is affected by time as the bulb heats up, eventually being all white-ish. That would be fine, too, but I can't even seem to get the lighting effect of the pink glow around it and whatnot. I can post pictures of my node setup if you need it, though I think I made it necessarily complicated.  Thanks in advance!  UPDATE: This is what I have now:   I want to adjust the colors, but that isn't the issue now... The way I made this is a glass spiral that acts as the bulb. Inside of that bulb (that has a glass-like shader) is a purple material that I made that mimics the phosphor coating blacklight light bulbs have to filter light. Then, a separate mesh spiral is inside of that, and it has the emission stuff on it.   As Duarte suggested, I used the node setup he had for my emission, but used a transparent node instead of glossy. Why isn't the emission light from inside my glass causing the glass to be glossy? If I put a point light in the scene, it looks glossy.   Thanks in advance! Shapefile: "table1.shp"   Field name: "Name" Field name: "Result"   Flat file: "referenceTable"   Field name: "STREET" Field name: "AKA"   I need to compare the value "Name" in "table1.shp" to the value "STREET" in "referenceTable"  If the values are the same then put the "AKA" value into the "Result" in "table1.shp"     Here is my code.  I got stuck on accessing the elements from the array  import arcpy, os, sys, string from array import *   table1 = "G:\\xStreetNew\\table1.shp" table1_column = ['Name', 'Result'] referenceTable = "G:\\xStreetNew\\Test.gdb\\referenceTable" referenceTable_column = ['STREET', 'AKA']  referenceTable_List = [] with arcpy.da.SearchCursor(referenceTable, referenceTable_column) as rCur: for r_row in rCur:     reference_row = r_row[0].split(",")     referenceTable_List.insert(0,reference_row) ##print sorted(referenceTable_List)  Table1_Update_Cursor = arcpy.da.UpdateCursor(table1, "Name") for row in Table1_Update_Cursor:   if row[0] == None:   row[0] = row[0] else:   row[0] = row[0].replace(";",",")   Table1_Update_Cursor.updateRow(row)  table1_List = [] with arcpy.da.SearchCursor(table1, table1_column) as tCur: for t_row in tCur:     row = t_row[0].split(",")     table1_List.insert(0,row) ##print sorted(table1_List)  Table1_row = len(table1_List) Table1_column = len([table1_List]) ref_row = len(referenceTable_List) for i in range(0,Table1_row):  #Table Row   for ii in range(0,Table1_column):   #Table Column     print table1_List[i][ii]   Below was my old post.  Sorry for the confusion.  I have a shapefile named "table1.shp".     I would like to get all values from fielname "Name" from this table and put them into a list. Able to output each element from the list     So far, I'm able to create a list but not too sure how to get to value "AVENUE 33" or "CHAPMAN ST"  This is my code:  import arcpy, os, sys, string from array import *   table1 = "G:\\xStreetNew\\table1.shp" referenceTable = "G:\\xStreetNew\\Test.gdb\\referenceTable" cursor = arcpy.da.UpdateCursor(table1, "Name") for row in cursor: if row[0] == None:     row[0] = row[0] else:     row[0] = row[0].replace(";",",") cursor.updateRow(row) table1_column = ['Name'] table1_curObj = arcpy.da.SearchCursor(table1, table1_column) table1_List = [] for row in table1_curObj:    table1_row = row[0].split(",")    table1_List.insert(0,table1_row)    print table1_List[0] Prove: If $A$ is a finite set and $B$ is an infinite set, then $B \setminus A$ is an infinite set.   I've tried proving the contrapositive, that if $B \setminus A$ is a finite set then $A$ is infinite or $B$ is finite, but I don't think this is the way to go. What factors determine enemy levels or: How do enemy levels scale to the player character's? Is there a VB.NET equivalent for C#'s '??' operator? Is there a VB.NET equivalent for C#'s ?? operator? How many 6-letter permutations can be formed using only the letters of the word, MISSISSIPPI? I understand the trivial case where there are no repeating letters in the word (for arranging smaller words) but I stumble when this isn't satisfied. I'm wondering if there's a simpler way to computing all the possible permutations, as an alternative to manually calculating all the possible 6-letter combinations and summing the corresponding permutations of each. In addition, is there a method to generalize the result based on any P number of letters in a set with repeating letters, to calculate the number of n-letter permutations?  Sorry if this question (or similar) has been asked before, but if it has, please link me to the relevant page. I also apologize if the explanation is unclear, or if I've incorrectly used any terminology (I'm only a high-school student.) If so, please comment. :-) If sup A $\lt$ sup B show that an element of $B$ is an upper bound of $A$ (a) If sup A &lt; sup B, show that there exists an element of $b \in B$ that is an upper bound for $A$.  I have argued that if sup A $\lt$ sup B, then choose an $\epsilon&gt;0$ such that sup A +$\epsilon \in B$. Since $a \le $ sup A for all $a \in A$, it follows $a \lt $ sup A + $\epsilon$ hence sup A + $\epsilon $ is an upper bound of A as well as an element of B.  (b) Give an example to show that this is not always the case if we only assume sup A $\le$ sup B.  I am having trouble extending my argument into an example which makes me think that it may not be correct.   Question: Is my argument for (a) correct? If not how would one show this fact? Can you give an example asked for in (b)? Thanks in advance.  I need to understand how I am assuming what I am supposed to prove in my approach. Can someone elaborate on that please? The other question doesn't really address this issue. Run a web server from any directory jQuery Datepicker with text input that doesn't allow user input How do I use the jQuery Datepicker with a textbox input:  $("#my_txtbox").datepicker({   // options });   that doesn't allow the user to input random text in the textbox. I want the Datepicker to pop up when the textbox gains focus or the user clicks on it, but I want the textbox to ignore any user input using the keyboard (copy &amp; paste, or any other). I want to fill the textbox exclusively from the Datepicker calendar.  Is this possible?  jQuery 1.2.6 Datepicker 1.5.2 Let a be a positive number. Then $\lim_{n \to \infty}[\frac{1}{a+n}+\frac{1}{2a+n}+\cdots +\frac{1}{na+n}]$ Can ribosomes read ssDNA? My question is whether translation can be done, either naturally or artificially, through a ribosome reading (single-stranded) DNA directly. If not, I would like to know what allows ssRNA to be translated but not ssDNA. 2015 Macbook Air screen gradually dimming and dying This is not a problem at booting up. For a couple months now I'll be using my laptop when suddenly the screen dims to about 50% of normal. According to the brightness indicator the brightness is all the way up; I can make it dimmer, but not as bright as normal. The dimming isn't super even either, there are small areas of the screen that seem darker/brighter. In the past the problem easily goes away if I close the lid and reopen it... but now it's happening a lot and sometimes going completely black. Is this an easy/cheap fix? I'm traveling and can't do it myself. Is it worth bringing to the Mac store?  Thanks!