I've fitted 16 logistic regression models to my data and I'm not sure as to which model to choose as my final model. I looked at a couple of things to help me choose my final model. 1) significance of the predictor variables 2) AIC and BIC 3) area under the ROC curve 4) cross validation error. A model with low AIC or BIC value may have a smaller area under the ROC curve than another model with a higher AIC or BIC. And the model with largest area under the ROC curve may have a higher cross-validation error than a model with a smaller area under the ROC curve. I was able to narrow the 16 possible models down to 4-5 models but I can't make the final decision based on the criteria I used (1-4) since they seem to conflict with one another. How can I go about choosing the best logistic regression model for my data?
Suppose we have $n$ covariates $x_1, \dots, x_n$ and a binary outcome variable $y$. Some of these covariates are categorical with multiple levels. Others are continuous. How would you choose the "best" model? In other words, how do you choose which covariates to include in the model?  Would you model $y$ with each of the covariates individually using simple logistic regression and choose the ones with a significant association?
I have seen other similar questions but they don't seem to be what I want, please correct me if I'm wrong.  For simplicity: delete the default cube, NumPad7, add cylinder, rotate X 90, then add torus with ext/int 1/0.75 and raise it above the cylinder. It should look like this:.  What I want is to deform the torus against the cylinder, but make it as if it's a projection. This means that, when looked from above, it will look like a normal, undeformed torus (volume changes), but when viewed with NumPad1, it will look like a round-end tube following the curvature of the cylinder, while still having the same round cross-section. To make it worse, my object needs to be deformed by a more complex surface, such as sin(x).  If I'd use soft body, it will look shrinked when looking from above, i.e. it will preserve the volume. If I use shrinkwrap, it either does a projection with its circumference intact, but all flat, or it will project it (similar to what I want), but only the bottom side vertices, like a curtain.  Mesh modifier gets me nowhere since I have to manually tweak the surrounding mesh, and curve modifier also preserves the length/volume, while also squishing the section of the torus at the bending points.  My question(s): is there a way to project (mold) the torus onto the cylinder while preserving it's cross-section? Can this be extended for more complex meshes to be projected or to be projected on?    This is, roughly, what the side view (along Y axis in the 1st pic) would look like after the deforming of the torus:    The unselected shape above is the torus (as it is in the first picture), and the selected shape is what it would look like after the deform, or molding, whatever you want to call it.  And here is what it would look like when seen from above (top view, along Z axis)): i.stack.imgur.com/HVOCo.png (can't add more than 2 pics)  The view would be the same before and after the torus is deformed. One of the options offered when you right click the desktop or within a Nautilus window is "wipe available diskspace." I'd think that means all unused diskspace but assumptions can be dangerous. I don't want to try it only to find out that available meant "all". I can't remember seeing this option before 12.04.  I was asked to provide an image but unfortunately when right clicking to get the drop down menu, the print screen function doesn't respond thereby making an image impossible.  It appears that no responder so far has actually used this nautilus option. Jorge suggested that the feature was actually nautilus-wipe and I verified that is the case by removing nautilus-wipe and seeing that the menu option is now gone. Documentation for nautilus-wipe is almost non-existent and what little I found was superficial and contradictory. This doesn't leave me with a warm and fuzzy feeling regarding my using an application or feature that purports to "wipe disk" without a clear definition of what is wiped. How to make a through hole using inward extrusion in Blender 2.8? I am trying to make a through hole using inward extrusion. I enterd into edit mode, then I drawed an outline of my hole using knife tool. then I turn into wireframe shading, rotate my view an select snap to faces and then extrude the hole outline inward  so the hole is created successfully, but I still have a face at the hole bottom. I can select this face separately  But If I try to delete it, I siply delete this face (I can't select it anymore after deleteting), but I do not see through hole, so the basic cube face is still here. So how to remove the hole bottom? What resampling method is used in the raster 'Save as...' dialog? I received a raster that was resampled using the Save as dialog in QGIS. Now I need to describe the resampling process in a report. But I could not figure out the method used in the resampling. Is it Nearest Neighbor? Bicubic?  This question has been asked before () but the answer does not specify the method used.   I also tried looking at the QGis source code in GitHub, but unfortunately, I could not find where the magic takes place (I'm not a programmer) Tiny navigation buttons and tags on responsive mobile I know it will be hard for you to tell on desktop because the resolution is so high, but the clickable text in the upper left, the icons on the upper right, and the navigation buttons at the bottom are all tiny. I have to squint to read the tags, I can't reasonably tap any navigation button except for Next without zooming, and selecting the achievements dialog, etc. is all very difficult. It seems to me that this would not be terribly difficult to change, so I am posting this feature request. I'm using a relatively large Samsung phone (Note 8), so I can imagine it would be worse on smaller phones.  Edit: I see from posted images that the responsive design on other phones looks nothing like mine. I'm wondering if it has something to do with the high resolution  where it thinks it is bigger than it is, or it's picking the wrong sizes because it's a tiny bit over some size threshold, in which case this would be a bug. Can you find all classes in a package using reflection? IIS7 - The request filtering module is configured to deny a request that exceeds the request content length Quoted vs unquoted string expansion I'm trying to create an annotated bibliography. Here's my .tex document:  \documentclass[12pt]{article} \title{Annotated Bibliography}  \begin{document}  \nocite{*}  \bibliography{annotatedbib}  \end{document}   And here is the associated .bib document:  @Misc{hacker,     AUTHOR = `{Andrew Hacker'},     TITLE = {Is Algebra Necessary?},     HOWPUBLISHED = {New York Times},     MONTH = {July 31},     YEAR = {2012},     ANNOTE = {This article was published in the New York Times.}, }   No matter into which format I compile my .tex document, the annotation will not show up! Is there something that I'm missing? Which is more idiomatic in a bash script: `|| true` or `|| :`? I don't do terribly much shell scripting, so I was a little surprised when I was reading  and I saw the syntax they used in this documentation:     A non-zero return from the command in any submodule causes the processing to terminate. This can be overridden by adding || : to the end of the command.   I had to look up that || : was a shorthand for forcing a command to exit successfully.  Anytime I've had to make a command exit successfully, I used || true.  Is || : considered to be more idiomatic? How many ways can $b$ balls be distributed in $c$ containers with no more than $n$ balls in any given container? I know the thread  However, there is no Linux anymore in the installation site .  Unsuccessful attempts   I do DriraWassim's proposal which does not add anything to apt-get and does not show the installed .deb package in the path/search  sudo apt-get install libxml2:i386  sudo apt-get update sudo apt-get upgrade  apt-cache search adobereader-enu   I download the newest .deb package  and run it.  I cannot find the application anywhere in the system. It is not in the path and not in Ubuntu's search. How can you start it?   System: Ubuntu 16.04, 64 bit Hardware: Macbook Air 2013-mid Linux kernel: 4.6 Modify obj after import using python I am trying to modify an object after importing it. This post is related to   import bpy full_path_to_file = "C:\\Users\\xyz\\Documents\\test.obj" bpy.ops.import_scene.obj(filepath=full_path_to_file) # create the material mat = bpy.data.materials.new('MaterialName') mat.diffuse_color = (1.0,0.0,1.0) mat.diffuse_shader = 'LAMBERT' mat.diffuse_intensity = 1.0  # get the object obj = bpy.data.objects['Cube']  # get the material mat = bpy.data.materials['MaterialName']  # assign material to object obj.data.materials.append(mat)   I wanted to add a material to the imported object but that is not happening. So I tried to scale it even that is not happening.  I realized that no operation is being performed on the imported objects. But the same operations are executing on the objects that are created (i.e. not imported).  Any help would be appreciated. Careers ad asking if I want to work where I already work? When performing apt-get update, I get the following error:   root@ADS3-Debian6:/home/aluno# apt-get update Atingido http://sft.if.usp.br squeeze Release.gpg Ign http://sft.if.usp.br/debian/ squeeze/contrib Translation-en Ign http://sft.if.usp.br/debian/ squeeze/contrib Translation-pt Ign http://sft.if.usp.br/debian/ squeeze/contrib Translation-pt_BR   (...)  Obter:10 http://security.debian.org squeeze/updates/non-free i386 Packages [14 B] Baixados 612 kB em 4s (125 kB/s)                     Lendo listas de pacotes... Pronto There is no public key available for the following key IDs: 8B48AD6246925553 Is Dishonored an open-world game? I was considering whether or not to buy Dishonored, and watching gameplay of it on Youtube, when a thought popped into my head: is Dishonored free-roam? Can you go anywhere you want, similarly to Fallout or The Elder Scrolls? What could cause a microcontroller to unexpectedly reset? One particularly irritating variety of bug in a microprocessor-controlled system is for the microprocessor to unexpectedly reset. An important tool for debugging this kind of problem is a list of possible causes. What could cause a microcontroller to unexpectedly reset? How to turn off magic quotes on shared hosting? I want to turn off PHP's magic quotes.  I don't have access to php.ini.  When I tried to add php_flag magic_quotes_gpc off to my .htaccess file, I get a 500 internal server error. This is what my .htaccess file looks like:  AddType x-mapp-php5 .php php_flag magic_quotes_gpc off   Then I tried to use ini_set('magic_quotes_gpc', 'O'), but that had no effect.  How do I turn magic quotes off? was created on Server Fault, answered on Server Fault, I upvoted some of those answers on Server Fault, and then moved by consensus to Super User.  Now that the question is on Super User, I can upvote the same answers I previously upvoted on Server Fault. Proof verification of a number theory problem involving sequences.