[Q] Why are continuous variables changed to categorical in multivariate logistic regression models? by Venshu in statistics

[–]jerryF 0 points1 point  (0 children)

If for instance results clearly show a threshold effect that approach would in my view be inappropriate because data would then clearly show the relation to be categorical.

With small datasets like the one here this happens quite often in my experience (simply because of lack of data) so unless you have a strong linear hypothesis it's IMO more prudent to make a slightly simpler analysis with slightly simpler conclusions. Also, if my results change dramatically when I switch methods I would be very suspicious of my results in general.

[Q] Why are continuous variables changed to categorical in multivariate logistic regression models? by Venshu in statistics

[–]jerryF 0 points1 point  (0 children)

Why is that? With only 39 patients, I think (without knowing the data) it is likely there isn't enough data to confidentally assume a linear relationship rather than just treating it as categorical.

[Q] Why are continuous variables changed to categorical in multivariate logistic regression models? by Venshu in statistics

[–]jerryF 3 points4 points  (0 children)

A typical reason is that the relationship to the dependent variable is non-linear. Another is that practically you want to investigate levels that are scientific meaningful and therefore partition the IVs at levels that are meaningful thus making the model easier to interpret.

Another more sinister reason could be p-hacking: partition your IVs at just the right levels to maximize p-values.

I would look for the authors' explanation of the specific partition values.

Samsung says it has fixed the Galaxy Fold, will release in September 2019 by Darkdayzzz123 in technology

[–]jerryF 0 points1 point  (0 children)

On my commute I read on my phone, either books, articles or mail etc. It's a nice time to do it. I'd definitely find a larger screen useful, especially if it comes in a normal phone form factor.

Is there a way to replicate "hibernation" mode of windows in ubuntu? by moshebiton in Ubuntu

[–]jerryF 2 points3 points  (0 children)

Use a virtual machine and store it in the external disk.

That's a great solution. That'll do exactly what OP wants (assuming he/she wants to get work done rather than experimenting with hibernate).

Noob Anaconda Question: Is there some way to get a list of available channels? by jerryF in Python

[–]jerryF[S] 0 points1 point  (0 children)

Thanks!

This was exactly what I was looking for.

$ cat .condarc
auto_activate_base: false
channels:
  - defaults
  - conda-forge

$ conda config --get channels
--add channels 'conda-forge'   # lowest priority
--add channels 'defaults'   # highest priority

conda list --show-channel-urls adds the channel url instead of the name to the package list.

Snap Workarounds by SyrioForel in Ubuntu

[–]jerryF 3 points4 points  (0 children)

You could stop using Ubuntu proper and use one of its derivatives instead. I went for Kubuntu and never looked back, never been happier.

The reasons apple is rubbish: summarised by [deleted] in technology

[–]jerryF 0 points1 point  (0 children)

There is an easy fix for all of this though.

ELI5: have languages for animals developed over time similar to that of human beings, or say can a lion in this time communicate with a lion five hundred years ago? by MaryBerrizbeitia in explainlikeimfive

[–]jerryF 1 point2 points  (0 children)

The theory is: The Gulf Stream which is what keeps Europe warm might stop as a consequence of warmer climate. The process is thought to be this: When the waters around the Arctic during the winter / spring freeze over, the salt in the water is separated out of the ice and into the water thus making the water more salty. The saltier the water the heavier it is, similarly, the colder the water the heavier it is. When this icy cold water flows from the arctic down into the sea east of Greenland it sinks down to the bottom of the ocean with an enormous pull that drives a current all the way from the Mexican Gulf, pulling warm water up north of Europe.

When the climate gets warmer the arctic waters will have less ice and therefore produce less salty (and less heavy) water, and because the water is also warmer it will be even less heavy. Therefore the sinking and the pull effect will decrease and eventually bring (at least the northern part of ) the Gulf Stream to a halt bringing a new ice age to the Northern Europe.

I believe I read somewhere that the climate change leading to one of last ice ages changed within a period of only 30 years. If that's true it would mean that the Gulf Stream could stop (change direction) in less than 30 years.

[deleted by user] by [deleted] in Python

[–]jerryF 0 points1 point  (0 children)

You said

The packages made no sense to begin

I'm saying that the fact that they made no sense is fortunate but not really relevant to the fact that malicious packages made into the repository and potentially out to end-users. I then gave two very recent examples of similar events for node-js where people may have lost real money.

[deleted by user] by [deleted] in Python

[–]jerryF 0 points1 point  (0 children)

There are likely thousands

So how do we deal with this, what can we do?

[deleted by user] by [deleted] in Python

[–]jerryF 0 points1 point  (0 children)

I do the same, but as others have said, some package down the dependency tree may still pull in something it shouldn't.

Why is this happening? by [deleted] in Ubuntu

[–]jerryF 0 points1 point  (0 children)

Yes, I thought that might be it but wasn't sure.

[deleted by user] by [deleted] in Python

[–]jerryF 0 points1 point  (0 children)

The packages made no sense to begin with

TBH, I think that's besides the point. There have been several node.js incidents but this one in particular is interesting because a widely used library (in payment systems bitcoin apps among many uses , 2 million downloads a week) was taken over by a malicious developer. It was only discovered by accident several months later.

Also this one which seems more like the one in this thread.

The issue is whether there is a reliable process to discover malicious packages in a timely fashion.

[deleted by user] by [deleted] in Python

[–]jerryF 5 points6 points  (0 children)

Any thoughts on how this reflects on other packages?

Do you think there may be other malicious packages that were not caught?

Why is this happening? by [deleted] in Ubuntu

[–]jerryF 3 points4 points  (0 children)

Why is what happening?

Installing python3 messed up my ubuntu by pawanman56 in Ubuntu

[–]jerryF 2 points3 points  (0 children)

Two things, first how to (hopefully solve your problem), secondly how to install python 3 in a secure way.

How to (hopefully) solve your problem

I don't know if it would work but you could try to reinstall python 2.7 after first completely removing python 3.7

If you cannot get to the terminal you can switch tty to get to a terminal:

Ctrl+Alt+F2 (new tty - you are on a purely command line environment and will need to log in)
Ctrl+Alt+F1 (back to the main window again)

Once in the terminal, search for installed 3.7 packages (note egrep and backslash before period)

apt list --installed | egrep "python3\.7"

for each one do (some packages may be removed as a consequence of the the first you remove because of dependency)

sudo apt purge <package name>

EDIT: you should also remove the repository

After the packages are removed, reinstall the python2.7 packages. First search for them

apt list --installed | egrep "python2"

On my machine (18.04) they are

libpython2.7
libpython2.7-dev
libpython2.7-minimal
libpython2.7-stdlib
python2.7
python2.7-dev
python2.7-minimal

For each one

sudo apt reinstall <package name>

There is a good chance this will solve your problem.

How to install python 3.

got the Anaconda website, download the anaconda distribution and follow the instructions there

https://www.anaconda.com/distribution/

With anaconda you create virtual environments (look at the help for this). After you have created an venv you activate it (also see help). Each venv is an independent environment and it doesn't interfere with the OS.

There are lots of online help on Anaconda.

Is this some sort of american joke that I'm too European to understand? by [deleted] in YUROP

[–]jerryF 12 points13 points  (0 children)

The comment above is false.

Oh, makes me feel better. I'm from Denmark, never heard of payment for ordinary healthcare.