text
stringlengths
81
47k
source
stringlengths
59
147
Question: <p>Is it normal to get values for response that are $&gt; 1$ even though in logistic regression the response has meaning only in the range $[0,1]$?</p> <p>Does one then have to truncate all $&gt; 1$ values to mean just $1.0$?</p> <hr> <p>The reason for asking is that</p> <p>I got something that looked lik...
https://stats.stackexchange.com/questions/241159/getting-1-responses-in-logistic-regression
Question: <p>I am currently learning about the assumptions of logistic regression and am having a hard time wrapping my head around <em>why</em> independence of observations is necessary for this test. Any guidance would be appreciated.</p> Answer:
https://stats.stackexchange.com/questions/488362/why-is-independence-of-observations-an-assumption-in-logistic-regression
Question: <p>I'm trying to run a logistic regression in R to determine what independent variables may determine if a sea turtle becomes entangled in fishing net or not. My independent variables vary significantly from each other in both scale and class e.g. Mesh size (7mm-1500mm), Twine diameter(0.33-4mm) Colour (red,...
https://stats.stackexchange.com/questions/235467/logistic-regression-and-different-independent-variable-classes-what-to-do
Question: <p>I am running some logistic regressions in R. I need some help with interpreting coefficients. </p> <p>So, if my DV is 1 = yes and 0 = no, and I have five groups (a, b, c, d, e) and I make a the reference group (dummy coding), and the coefficient for b is significant and positive:</p> <ul> <li>does this m...
https://stats.stackexchange.com/questions/235640/help-with-interpreting-coefficients-in-logistic-regression
Question: <p>I am working on a project for a faculty member who wants to know if placement in Developmental Reading (IV1: Dev RDG &amp; NonDev RDG) and/or placement in Developmental English (IV2: Dev ENG &amp; NonDev ENG) affects the success rate (DV: Successful &amp; Unsuccessful) in a course (HIS101 for example).</p>...
https://stats.stackexchange.com/questions/237355/is-logistic-regression-the-right-analyses-when-a-study-has-1-categorical-dv-and
Question: <p>I am running a logit model trying to predict purchases on a dataset including change variables, i.e. I have a dataset of this kind:</p> <pre><code> webvisits.month1 webvisits.month2 webvisits.month3 Purchase contract1 34 21 22 0 contract2 ...
https://stats.stackexchange.com/questions/237559/normalization-of-change-variables-in-logistic-regression
Question: <p><strong>Preface</strong></p> <p>I've looked at <a href="https://stats.stackexchange.com/questions/11800/how-should-we-convert-sports-results-data-to-perform-a-valid-logistical-regressi">How should we convert sports results data to perform a valid logistical regression?</a> and <a href="https://stats.stack...
https://stats.stackexchange.com/questions/253515/how-to-model-a-logistic-regression-with-head-to-head-data
Question: <p>I have a variable $Y$=Control=$C$ and three variables:</p> <ul> <li>Fraud := $F$</li> <li>Error := $E$</li> <li>Waste := $W$</li> </ul> <p>all numerical variables. I am studying the effect of control methods on each of $F,E,W$, as well as on the combination of the three. </p> <p>To study the three effic...
https://stats.stackexchange.com/questions/255969/1-1-mapping-in-logistic-regression
Question: <p>could someone help me. <a href="http://sites.stat.psu.edu/~jiali/course/stat597e/notes2/logit.pdf" rel="nofollow noreferrer">http://sites.stat.psu.edu/~jiali/course/stat597e/notes2/logit.pdf</a> (page 4) What exactly are $\beta_{10}$ and $\beta_{20}$. How are they defined? </p> <p>I don't understand thi...
https://stats.stackexchange.com/questions/258271/question-about-logistic-regression-formula
Question: <p>H0: There is no effect of treatment (Road vs control) on rat occupancy<br> H1: Road has an effect on rat occupancy</p> <pre><code>Mod1 &lt;- glmer(Rat.Present ~ Treatment * Set.distance + (1|Site/Trap.Night), data = df.sub1, family = binomial) summary(Mod1) Generalized linear mixed model fit...
https://stats.stackexchange.com/questions/263315/how-to-perform-a-power-analysis-for-the-following-binomial-glmm
Question: <p>I conducted binary logistic regression analysis (DV is measured in yes, no). Among my IVs, One IV is about partnership measured in dichotomous (yes, no) and another IV is population density and measured as (Low=1, average =2, high (reference group) =3).</p> <p>The output shows that:</p> <ul> <li>For part...
https://stats.stackexchange.com/questions/263583/how-to-interpret-beta-in-logistic-regression
Question: <p>i made different models . in first I took a dependent variable and four independent variables . in second model I took different dependent variable and similar independent variable like wise I made four models but when I ran binary logistic regression I found similar p values in all models despite of dif...
https://stats.stackexchange.com/questions/200822/binary-logistic-regression-p-values-problem
Question: <p>I have some data that- in its raw form - represents group binomial data.Y vector is the probability of an event. Using logistic regression I get one set of parameter coefficients. </p> <p>Turning the data into a longer form - Bernoulli format (i.e. Y vector is 1 or 0), I use logistic regression again and ...
https://stats.stackexchange.com/questions/200840/binomial-glm-vs-bernoulli-glm
Question: <p>I have conducted a survey where all my questions are asked in a dichotomous manner (Yes/No).</p> <p>Eg IV:"Are you a smoker?", "Are you obese", "Is your gender male/Female" etc. DV: "Have you ever had a stroke?"</p> <p>Therefore both my dependent variable and independent variables are all dichotomous(Bin...
https://stats.stackexchange.com/questions/215490/can-i-run-a-regression-when-both-independent-and-dependent-variables-are-all-dic
Question: <p>One of my friends was asked in the interview following question:</p> <p>There are 35000 independent variables and 7 million observation over those variables. There is a binary response variable. There is a success rate of 1%. What will be your approach here?</p> Answer:
https://stats.stackexchange.com/questions/223368/approaching-a-regression-problem-with-many-independent-variables-and-binary-resp
Question: <p>I am running a logistic regression in order to determine the error rate of an outcome given some covariates. Two of my covariates are indicator flags for the location. When I include an intercept, one of the location flags is dropped which I understand. What I do not understand is that my $R^2$ also dro...
https://stats.stackexchange.com/questions/149074/why-does-the-inclusion-of-an-intercept-in-my-logistic-regression-cause-my-r2
Question: <hr> <p>Could someone point me toward a specific method to model data that consists of two groups of observations having the same dependent variable and sharing some explanatory variables, BUT also having explanatory variables that are defined for one group and not for another? A situation like this:</p> <h...
https://stats.stackexchange.com/questions/149510/logistic-regression-when-data-consists-of-shared-and-non-shared-variables
Question: <p>My question is regarding the LR cost function from andrews ML course (<a href="http://feature-space.com/en/document50.pdf" rel="nofollow noreferrer">http://feature-space.com/en/document50.pdf</a> , page -5)</p> <p>$cost= \frac{1}{m}[ -y \times \log(\psi) - (1-y) \times \log(\kappa) ]$</p> <p>The vector y...
https://stats.stackexchange.com/questions/156284/logistic-regression-cost-function-intuition
Question: <p>I am building a model that predicts a proportion: $y_i \sim f(x_{1,i}, x_{2,i},.., x_{n,i})$, where $y_i \in [0,1]$.</p> <p>One thing I find is that 40% of the observations have $y_i=0$. For the remaining 60%, if I plot $logit^{-1}(y_i)$, it looks like a nice bell curve. </p> <p>My question here is if I ...
https://stats.stackexchange.com/questions/161038/proportion-predictive-model-with-bi-modal-distribution
Question: <p>I have the following problem.</p> <p>Three hospitals of similar structure have the very different mortality rate on one certain disease. I would like to analyse the data, whether the location as a factor has an influence on the mortality after adjusting for age, gender, urgencies etc.</p> <p>My plan is t...
https://stats.stackexchange.com/questions/168037/general-question-on-the-analysis-design
Question: <p>My research concerns the language of Alzheimer's patients. As the disease progresses, their language becomes more concrete and less abstract - they seem to 'lose' their abstract vocabulary more quickly. Tracking that change over the course of the disease might have clinical benefits. </p> <p>I have identi...
https://stats.stackexchange.com/questions/169522/gradient-scores-from-binary-logistic-regression
Question: <p>I have two questions I hope you could help me with.</p> <p>I am doing a stepwise logistic regression.</p> <ol> <li>I have a variable that includes information other variables include already. For example "price_missing" ($1$ means price missing) and "price" ($0$ means price). Would it be a normal process...
https://stats.stackexchange.com/questions/172572/stepwise-logistic-regression-drop-variables-transform-variables
Question: <p>I am trying to develop a model for prediction of retention. The problem is that the retention is very rare - aprox. 0.2 %. So far I have been using logistical regression. Without much success however. For example, in the interval of predicted probability above 70 % I am getting 4 true retention clients and...
https://stats.stackexchange.com/questions/175684/logistical-regression-very-few-1s-in-response-vector-y
Question: <p>For a (binary) logistic regression, I have two IV's in my model. The first IV has three categories (one person, two persons, three or more persons). The second variable is binary (communication exists vs. not exists) For the first category, the second IV has no meaning, but for the second and third categor...
https://stats.stackexchange.com/questions/176190/regression-variable-has-no-meaning-for-one-category
Question: <p>Is there a measure in logistic regression that maybe penalizes you for having too many independent variables like in multiple regression with the adjusted R squared?</p> <p>That is, does having too many independent variables in a logistic regression hurt the model?</p> <p>What about dummy variables? Can ...
https://stats.stackexchange.com/questions/79366/maximum-number-of-independent-variables-in-logistic-regression
Question: <p>My understanding of Logistic Regression is that it is actually a classifier, hence used for predicting either a categorical outcome (ie. binary or an outcome with specific labels) as opposed to a continuous outcome. I would have expected that predicting a stock price would be a continuous outcome, so I don...
https://stats.stackexchange.com/questions/178757/why-is-logistic-regression-mentioned-by-many-sources-as-useful-in-predicting-sto
Question: <p>Suppose we have $n$ observations. For example, consider $n$ people who each have their blood pressure ($x_1$), pulse ($x_2$), and blood glucose ($x_3$) levels measured. So there are are $3$ explanatory variables measured for each person. The outcome variable is presence or absence of obesity ($Y$). In this...
https://stats.stackexchange.com/questions/64603/distribution-in-logistic-regression
Question: <p>I am wondering what are the advantages/disadvantages of breaking down a logistic regression in multiple steps, when they are available.</p> <p>Let me explain what I mean by <em>multiple steps</em>: Think of it like the customer journey: A cold lead (<code>A</code>) becomes a prospect (<code>B</code>) who ...
https://stats.stackexchange.com/questions/289309/advantages-of-breaking-down-a-logistic-regression-in-multiple-steps
Question: <p>I want to calculate the crude and adjusted odds ratios for exposure to occupational risk factors such as aluminum and fossil fuels in my case control study. My cases are 180 demented patients and I have 370 controls. Which type of logistic regression model should I use? When I adjust for age and education ...
https://stats.stackexchange.com/questions/384808/conditional-logistic-regression-for-calculation-odds-ratios
Question: <p>Apologies for the rudimentary question. I'm taking on a project at work that's a bit out of my wheelhouse and I want to bounce my ideas off of those more experienced than myself.</p> <p>We use Salesforce.com at the software company where I work, and I want to identify which lead behaviors (whitepaper down...
https://stats.stackexchange.com/questions/67094/is-binary-logistic-regression-the-right-choice
Question: <p>Is it acceptable to run a logistic regression on a yes/no DV and include a predictor variable that is a count of the number of times something happened previously, but none of the cases has a zero count? It seems to me you would be testing if more than 1 event matters, but not whether the overall number ma...
https://stats.stackexchange.com/questions/70511/assessing-role-of-a-count-variable-in-regression-do-you-need-a-zero
Question: <p>This question was motivated, but is separate from, the question I posted here: <a href="https://stats.stackexchange.com/questions/94026/how-can-i-improve-the-predictive-power-of-this-logistic-regression-model">How can I improve the predictive power of this logistic regression model?</a>.</p> <p>In that c...
https://stats.stackexchange.com/questions/94060/why-does-preponderance-of-a-single-outcome-render-binary-logistic-regression-ine
Question: <p>I have data where the dependent variable is discrete and lies between 20 and 40 (possible values are 20, 20.5, 21, 21.5, ..., 39, 39.5, 40). The variable measures some results from a game which can be between 20 (lowest achievable value) and 40 (highest). After some hours of research on the web, I could n...
https://stats.stackexchange.com/questions/97593/suitable-regression-model-for-limited-discrete-dependent-variable
Question: <p>My dataset contains samples of the following variables: <br></p> <ul> <li>$X_0$: the state of the system at time 0 (a continuous scalar)<br></li> <li>$X_1$: the state of the system at time 1 (a continuous scalar)<br></li> <li>$Y$: some binary variable describing the system at time 1 <br></li> <li>$\bolds...
https://stats.stackexchange.com/questions/100191/logistic-regression-for-self-regulation
Question: <p>I'm interested in modeling the probability of successfully arriving at a spawning site for an individual $i$, given two impediments that are conditioned on one another. I know whether an individual made it pass hurdle 1 ($y_{1,i}$) and hurdle 2 ($y_{2,i}$), and several other measurements that I want to us...
https://stats.stackexchange.com/questions/100916/modeling-conditionally-independent-observations-using-logistic-regressions
Question: <p>I am analysing a set of data where I try to predict an outcome (Level of women’s nutrition knowledge; whether it is High or Low) by using certain covariates (demographic characteristics of the sample). I have already done Chi-square analysis and now I am progressing to binary logistic regression.</p> <p>T...
https://stats.stackexchange.com/questions/114151/in-regard-binary-logistic-regression-which-method-is-better-enter-or-one-of-th
Question: <p>Is the requirement of monotonic sigmoidal relation between p and X'B in logistic regression equivalent as logit[p] having linear relation with X'B? X is the vector of independent variables and B is a vector of estimates.</p> Answer:
https://stats.stackexchange.com/questions/127348/is-monotonic-sigmoidal-relation-between-p-and-xb-in-logistic-regression-equival
Question: <p>I am working on data for logistic regression I used enter method to deal with variables Is it enough or i have to use forward and backward? Is there any references or reports supporting using enter method alone?</p> Answer: <p>You certainly should <em>not</em> use forward and backward. Using the enter me...
https://stats.stackexchange.com/questions/129909/using-enter-method-to-deal-with-variables-in-logistic-regression
Question: <p>I am doing a logistic regression . My outcome is a categorical (yes/ no) pain after surgery. The predictors i wish to model for includes the type of anaesthesia , among other predictors. The problem is the types i wish to include are general anaesthetic, plain spinal anaesthetic, spinal anaesthetic with mo...
https://stats.stackexchange.com/questions/135301/logistic-regression-non-exclusive-predictors
Question: <p>I used the multinomial logistic regression to predict the percentages of students who voted 'acceptable', 'uncertain', and 'unacceptable' to natural ventilation use in three observed classrooms during cool and hot seasons. </p> <p>The sets of significant IVs of the cool and hot season cases were differ...
https://stats.stackexchange.com/questions/34990/can-we-simply-compare-the-predicted-percentages-of-the-outcome-between-studies
Question: <p>What I am looking to do is test for a correlation between an activity (in this case nesting) with cumulative rainfall from the previous two weeks. For example, say one individual nested on DayX where the total rainfall from the previous 2 weeks is 4cm and another individual nested on DayY with 8cm of prior...
https://stats.stackexchange.com/questions/45491/logistic-regression-for-abiotic-influences-on-behavior
Question: <p>I´m trying to find variables predicting a disease by using first logistic regression for each variable on the disease and then entering the significant variables into a multiple logistic regression model. However, one of the variables in the multivariate model is a clinical score, which contains some of th...
https://stats.stackexchange.com/questions/47314/variable-entered-in-logistic-regression-model-is-part-of-another-variable-entere
Question: <p>I got the equation for logistic reg, and I am comfortable with the result. Let's say logit(p), ln(p/q), or the model is something like<br> $$\text{logit}(p) = b+a_1X_1 + a_2X_2 + a_3X_3$$ For example --> <code>$b = 10 , a_1 = 0.5 , a_2 = 0.6 , a_3 =0.7$</code></p> <p>So my equation is <code>$\text{logi...
https://stats.stackexchange.com/questions/48054/how-can-i-implement-logistic-regression-in-live-decision-system
Question: <p>In market research I'm building a logistic regression model to estimate the likelihood that clients may change banks. The proportion of events is roughly 10% in my sample. From university I remember that a proportion of events that is too small introduces bias into the estimate. Or is it the standard error...
https://stats.stackexchange.com/questions/49931/what-is-an-acceptable-proportion-of-events-in-logistic-regression
Question: <p>I am not really sure about how it behaves when using batch gradient descent in logistic regression.</p> <p>As we do each iteration, $L(W)$ is getting bigger and bigger, it will jump across the largest point and $L(W)$ is going down. How do I know it without computing $L(W)$ but only knowing old $w$ vector...
https://stats.stackexchange.com/questions/55992/convergence-of-batch-gradient-descent-in-logistic-regression
Question: <p>Forgive me for a potential dupe, as I don't know the correct terminology for searching for an existing question. Also please add tag "trends" or similar, as I don't have the reputation to create new tags.</p> <p>I have market data like so:</p> <pre><code>X Y S 10 20 0 20 30 1 20 25 0 15 10 0 ... </code...
https://stats.stackexchange.com/questions/56325/calculating-trend-for-3-dimensional-data
Question: <p>If I have 10 Variables (Q,W,E,R,T,Y,U,I,P,A) and I want Q to be my response variable and other 9 to be my predictors variable. Do I write it in R like this </p> <p><code>EXAMPLE&lt;-glm(Q~W+E+R+T+Y+U+I+P+A,family=binomial)</code></p> <p>Furthermore, what if Q is Binary (goes from 1 to 0) and all the ot...
https://stats.stackexchange.com/questions/56559/fit-a-logistic-regression-code-in-r
Question: <p>I ran annual logisitic regression on time-series datas. The most important independant variable have coefficient that are significant in a lot of years, that's a relief. But the "controlling variables", have non-significant coefficients. I'm far from an expert in stats.</p> <p>My sample is very small comp...
https://stats.stackexchange.com/questions/59107/logistic-regression-controlling-variables-not-significant-what-should-i-conclu
Question: <p>So I have a large dataset, and I was wondering what the best way to conduct statistical analysis of it is. I'm very green in terms of statistical methods, but I learn quickly. Basically, each item has a couple attributes, and each attribute has several possibilities. Each item has their specific attribute ...
https://stats.stackexchange.com/questions/63006/statistical-analysis-on-mostly-boolean-values
Question: <p>Let $T(y_i,\pmb x_i)$ be a regression estimator (of the scalar $y_i$ unto the $p$-vector $\pmb x_i$). When $T$ is the usual LS estimator and $\nu\in\mathbb{R}^p$, we have that:</p> <p>$$T(y_i+\pmb x_i'\pmb\nu,\pmb x_i)=T(y_i,\pmb x_i)+\pmb\nu$$</p> <p>This property is called regression equivariance and ...
https://stats.stackexchange.com/questions/63195/counterpart-to-regression-equivariance-in-logistic-regression
Question: <p>Suppose we have a dataset with various variables <span class="math-container">$\{X_1, X_2, ...\}$</span> with unknown distributions, and a binary response variable <span class="math-container">$K$</span> that is a direct function of one of the <span class="math-container">$X_i$</span>'s. Let us say an indi...
https://stats.stackexchange.com/questions/543993/estimate-probabilities-of-independent-events-given-constraints
Question: <p>I am trying to train a Gradient Boosting on a '%-target variable', i.e. having values in the interval [0,1]. The bad thing about this particular case is that the target variable is very narrowly distributed around the value 0.99. It is not constant, there are different values, it is just that they all lie ...
https://stats.stackexchange.com/questions/425541/regression-with-small-target-variable-interval
Question: <p>I am currently self-studying statistics and I'm confused about the null model in binary logistic regression. I understand that the null model is used to be compared with the model you designed, but what exactly is the null model? Just ln(x)=y?</p> Answer: <p>The full model is $$\ln \frac {\pi}{1-\pi}=\be...
https://stats.stackexchange.com/questions/82940/is-the-null-model-for-binary-logistic-regression-just-the-natural-log-function
Question: <p>I understand that binary logistic regression is applied to binary classification problems where the dependent variable <span class="math-container">$Y$</span> has only two possible outcomes. The independent variables are <span class="math-container">$x$</span>. The result of logistic regression is assignin...
https://stats.stackexchange.com/questions/556135/understanding-binary-logistic-regression-as-a-linear-model
Question: <p>I am reading through the book <em>Practical Statistics for Data Scientists</em> and I am on a section covering logistic regression. In this section the book covers how the coefficients to the logistic regression function are on the log-odds scale. As an example, there is some R output that specifies (among...
https://stats.stackexchange.com/questions/559610/help-interpreting-coefficients-to-logistic-regression
Question: <p>I'm interpreting the coefficients of a regression with all categorical variables and all but one make sense, in that I was expecting the association/direction from my descriptive statistics. I know that the regression controls for other variables, but one coefficient makes no sense - in other words the opp...
https://stats.stackexchange.com/questions/275124/unexpected-logistic-regression-coefficients-opposite-to-chi-square-cross-tabs
Question: <p>I have a dataset with more 15 independent variables trying explain a binary outcome. The results seemed dubious and the confidence interval profiling failed by providing lower bounds of the confint larger than the upper bounds-- I found the variable creating this mess which is a four category variable. Fur...
https://stats.stackexchange.com/questions/275216/logistic-regression-with-zero-event-in-one-category
Question: <p>I have 52,840 survey responses covering 2012-2015. I've produced 14 different small area estimates for survey variables like obesity, binge drinking, smoking, etc. These estimates were created using a generalized linear mixed model approach. </p> <p>I'd like to see whether or not there are overlapping ar...
https://stats.stackexchange.com/questions/278316/can-i-model-one-prevalence-on-another
Question: <p>Will the estimates and odds ratios change for an independent variable if it is by itself vs if there are other independent variables? I would think that it would change since thinking of it as an equation $y=x$ (one variable) is different than $y=x+z+q$ (3 variables).</p> Answer: <p>The estimate of the e...
https://stats.stackexchange.com/questions/278367/logistic-regression-with-multiple-independent-variables-vs-one-independent-varia
Question: <p>I found these expressions for the probability of an outcome $y$ given variables $x$ and parameter $W$. $\theta$ is the logistic function.</p> <p>$p(y \mid x,W) = Bernoulli(y \mid \theta(W^\intercal X) ) )$ </p> <p>adapted from [<a href="https://mitpress.mit.edu/books/machine-learning-0" rel="nofollow nor...
https://stats.stackexchange.com/questions/279245/probability-notation-in-logistic-regression
Question: <p>Imagine I have objects with 5 different properties which are either present (1) or not (0). Further, I have some other variables that I expect to predict the presence of a property.</p> <p>Focusing on a single property out of the five, I could use a logistic regression to infer the influence of my variabl...
https://stats.stackexchange.com/questions/278900/logistic-regression-with-multiple-dependent-variables-in-a-single-model
Question: <p>I'm working on a customer churn model. Currently i have a variable for increased returns (1/0). After i run the model and convert the coefficient to and odds ratio, then convert that to probability; I wind up with 70%. (Churn =1, Not Churn = 0)</p> <p>My question is can i use the inverse of this probabili...
https://stats.stackexchange.com/questions/299791/logistic-regression-question-about-inverse-of-a-features-probability
Question: <p>How to build a regression model with a continuous response variable bounded from 0 to 1? </p> <p>I think it is not logistic regression, where I am not predicting a binary response variable, Right?</p> <p>Sorry for duplication if any, I tried to search but not find. (I feel this question must be asked man...
https://stats.stackexchange.com/questions/305056/how-to-build-a-model-with-a-continuous-response-variable-bounded-from-0-to-1
Question: <p>I want to develop a logistic regression model. There are 1000 cases in the dataset and there are only 180 'Yes'. Therefore, the proportion is 18%. I was told that I should have at least 500 Yes in the dataset in order to build a good logistic regression model. How can I handle this problem? Do I need to h...
https://stats.stackexchange.com/questions/323802/sample-size-and-no-of-events-in-logistics-regression-model
Question: <p>question 1: I have 6 variables where 2 binary predictor variables have a much higher odds ratio than the other variables. One variable has 8.40 odds ratio and the second has 3.16 odds ratio. The other variables are between 1.42 and 1.54 odds ratio. It seems like the variable with 1.42 odds ratio would be ...
https://stats.stackexchange.com/questions/326452/high-odds-ratio-and-insignificant-p-value-in-multiple-logistic-regression
Question: <p>I am conducting a meta-analysis and I am extracting pearson's correlation coefficient (r) from studies in order to meta-analyse them. Some studies have not used correlations so I am having to calculate r from the statistics they report. One study has reported a logistic regression, is it meaningful to squa...
https://stats.stackexchange.com/questions/328874/can-i-squareroot-r2-to-get-r-in-a-logistic-regression
Question: <p>My survey data contains 10 different questions all recoded into 'Correct' (1) and 'Incorrect'. I have 2 IVs which are also categorical. I need to find out whether each treatment condition affects the answer to the questions. In order to do this in SPSS I have 2 options:</p> <ol> <li><p>Run binomial logist...
https://stats.stackexchange.com/questions/334024/running-logistic-regression-in-spss
Question: <p>I want to know if <em>depending on country</em> will an individuals response to 6 different questions which predicts an outcome variable scored as (yes/no) differ. E.g someone from country X may score higher on the 6 questions which in turn predicts whether they answered yes/no to my outcome variable. I'm ...
https://stats.stackexchange.com/questions/331779/how-to-use-logistic-regression-for-this-scenario
Question: <p>My current understanding is that logistic regression can be used for 2 tasks:</p> <p>1) Binary Classification 2) Computing a probability between 0 and 1 for data generated by a Bernoulli process?</p> <p>I also know there's more than one way to solve a logistic regression problem, one being the bayesian w...
https://stats.stackexchange.com/questions/336895/when-is-bayesian-logistic-regression-mcmc-preferable-to-glm-logistic-regressio
Question: <p>I'm a medical student and for a research project, I'm trying to predict the success of a medical procedure. An independent variable of interest is the amount of prior experience the doctor has performing the procedure. This effect is probably non-linear. In other words, you learn more the first time you tr...
https://stats.stackexchange.com/questions/338396/non-linear-logistic-regression-one-predictor-with-non-linear-effect
Question: <p>For my study i used a model which had 6 independent factors that predicted a binary outcome variable (yes/no). The general assumption is that a higher score should predict a yes response. </p> <p>I tested this model in two different countries to understand what predicts the outcome behaviour in each. Shou...
https://stats.stackexchange.com/questions/341938/reporting-binary-regression-models
Question: <p>carried out an ordered logistic regression but sample sizes were not equal, one is much larger than the other (490) compared to 224 and 219, the result for this group was non-significant could this be the result of a larger sample size? If not, are there other negatives to having such big differences in co...
https://stats.stackexchange.com/questions/349063/ordered-logistic-regression-unequal-sample-sizes
Question: <p>Whenever I am building the first model in logistic regression, it is throwing the error shown below. My code is:</p> <pre><code>mo2 &lt;- glm(train3$Medal ~ ., data = train3[, -15], family = "binomial") Error in `contrasts&lt;-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied onl...
https://stats.stackexchange.com/questions/368739/whenever-i-am-building-the-first-model-in-logistic-regression-there-is-an-error
Question: <p>Can you offer any assistance on clarifying the meaning of the following content - specifically the section on "Then a link function must be used to reverse the logarithm transformation, exponentiating the modeled value." This analysis is logistic regression and analyzed in SPSS. Also, how are beta coeffic...
https://stats.stackexchange.com/questions/373980/logistic-regression-what-does-this-mean-then-a-link-function-must-be-used-to-re
Question: <p>I am working with logistic regression in R by means of glm. I have fitted a logistic (0-1) regression model with seven predictor variables. I obtain a model where the variables have high p-values (>0.1) (not significative) but the r^2 of Mcfadden is high (0.6).</p> <p>McFadden is equivalent to Pearson's r...
https://stats.stackexchange.com/questions/387069/logistic-regression-with-high-correlation-but-no-significative-variables
Question: <p>Normally when we do logistic regression, we would have a dataset something like:</p> <pre><code> X1 X2 Y 1: A 3 0 2: A 4 0 3: A 3 0 4: B 4 1 </code></pre> <p>(4 observations)</p> <p>However, for some reasons, I only have the aggregated version:</p> <pre><code> X1 X2 count Y_count 1: A 3 ...
https://stats.stackexchange.com/questions/388304/logistic-regression-on-aggregated-counts
Question: <p>I have a dataset (unfortunately cannot disclose any part of it) which has a binary response variable. For each independent variable, I calculate the log odds of the positive cases given each value of the IV and plot them to check linearity, i.e., x-axis is the IV and y-axis is the <span class="math-contain...
https://stats.stackexchange.com/questions/388369/how-does-a-logistic-regression-model-converge-if-most-variables-are-not-linear-w
Question: <p>I am conducting analysis to assess agreement between self-report and lab data on adherence to a certain drug intervention. I know that medication adherence in the population of interest can be influenced by variables such as age, sex, socioeconomic status, etc.. </p> <p>I need to conduct logistic regressi...
https://stats.stackexchange.com/questions/390514/what-type-of-logistic-regression-should-i-use
Question: <p>I have a regression with a log-transformed independent variable, and I would like to know the proper way to explain its effect on my binary dependent variable.</p> <p>For example, say the equation is: </p> <p>(binary_variable)i = b0 + -0.03(log_variable)i</p> <p>Does a 1% increase in log_variable mean a...
https://stats.stackexchange.com/questions/398932/interpreting-coefficient-of-a-logarithmic-coefficient-in-a-logistic-regression
Question: <p>I have been thinking about this for a while.</p> <p>I have a panel dataset with two time periods. My outcome variable is personal income. Since this study was conducted in a low-income country and the entire set of respondents of women, I have a lot of zero, and near-zero values.</p> <p>I initially chang...
https://stats.stackexchange.com/questions/403077/dealing-with-logged-outcome-variable-in-a-regression-with-zero-values
Question: <p>I have a retrospective cohort study with matching (1:3) done. The response variable is charity care which is a continuous variable and the primary independent variable is hospital ranking which is a binary variable. Most statistical books suggest conditional logistic regression model to account for matchin...
https://stats.stackexchange.com/questions/404664/regression-model-for-matched-retrospective-cohort-study-with-continuous-response
Question: <p>I try to predict whether households use a certain service (<strong>TRUE</strong> or <strong>FALSE</strong>) based on various variables, using logistic (LASSO) regression.</p> <p>Among many others, I have the variables <strong>percentage man</strong> and <strong>percentage woman</strong>, which have a -.85...
https://stats.stackexchange.com/questions/411332/why-can-negatively-correlated-variables-have-similar-beta-coeficients-in-logisti
Question: <p>I am also looking for guidance on how to conduct a logistic regression with three categorical dependent variables. My two independent variables are dichotomous and experimentally manipulated. Of the three dependent variables: two are dichotomous, one has four categories. None of the categories in the IVs o...
https://stats.stackexchange.com/questions/415360/guidance-on-how-to-conduct-a-logistic-regression-with-three-categorical-dependen
Question: <p>I'm trying to interpret these results of using R confint function , but I can not understand. This is a logistic regression about breast cancer. how to interpret confint function. What the 2.5% and 97.5% means?</p> <pre><code>logit1 = glm(goodmodel, data=train, family=binomial(link = logit)) summary(logit...
https://stats.stackexchange.com/questions/417708/having-trouble-interpreting-confint-function-using-r-logistic-regression
Question: <p>I am setting up a logistic regression using the following (simplified) form:</p> <p>Logit(Y) = Constant + A<em>x + B</em>z</p> <p>The real-life scenario is that I am trying to understand the probability of a sales prospect converting from a phone call and x = time_from_prospect_upload_to_call and z = cha...
https://stats.stackexchange.com/questions/419000/logistic-regression-do-not-include-variable-used-in-regression-in-linear-equati
Question: <ol> <li><p>I have been told that Nagelkerke should not be used in a model of binary logistic regression, but instead a R2 as a measure of goodness of fit. So, how can I apply R2 if I am not using a linear regression.</p></li> <li><p>How can I compare 2 or 3 models of binary logistic regression? is there any ...
https://stats.stackexchange.com/questions/426854/about-binary-logistic-regression
Question: <p>I have been working on a logistic regression model to predict 'yeses' in a yes/no classification problem. The objective of my problem is not necessarily to predict the outcome, but it's rather to just get a better understanding of my variables and how they influence the outcome. </p> <p>For example, I wan...
https://stats.stackexchange.com/questions/436585/how-to-have-better-confidence-in-my-logistic-regression-model
Question: <p>I am learning the tool of regression. In the text, I was introduced with the measurement of the diameter of different spheres of the same material many times and estimate the volume with formula. In this case, the variable X is the diameter and the Y is the resulting volume. It is easy to understand. But I...
https://stats.stackexchange.com/questions/458028/the-basic-idea-of-regression-with-multiple-data
Question: <p>I have run a logistic regression model on a target variable and get a list of probabilities like [0.50, 0.30, 0.20, 0.10, 0.05, 0.05, 0.01].</p> <p>For the target situation, I know that there are always going to be 3 positive results. I’m looking at a soccer league and comparing some stats (goals, last ye...
https://stats.stackexchange.com/questions/458913/normalizing-logistic-regression-probabilities-to-fixed-number
Question: <p>I have fitted the logistic model that has coefficient of age and level of income. The dataset has values for age 18-60 so my thinking is that since we cannot set age to 0, interpreting the intercept will not make sense. Am I thinking right? </p> Answer: <p>Exactly.</p> <p>Interpreting the intercept in <e...
https://stats.stackexchange.com/questions/464571/interpreting-the-logistic-model-intercept
Question: <p>I have a model with one predictor and 1 control variable. The dependent variable is binary, either 0 or 1. </p> <p>But the intercept is around 2.5? How is this possible? I thought the logistic regression would limit the function between 0 and 1?</p> Answer: <p>The logit scale goes from minus infinity to ...
https://stats.stackexchange.com/questions/467542/how-can-the-intercept-of-a-logistic-regression-be-more-than-1
Question: <p>I have few exposure variables (from a survey N= 1241) two of which are 1) dichotomous response of the question: "Did you have enough water in past 30 days?" and 2) dichotomous response of "Have you spent 2 or more days without water in past 30 days?". I want to run logistic regression to see if they are re...
https://stats.stackexchange.com/questions/271065/combining-exposure-variable
Question: <p>I ran a logistic regression with categorical variables. The estimates and odds ratios are: Marital_Status- Estimate: .6605 Odds Ratio: 3.747 Professional Suffix: .5342 Odds Ratio: 2.911</p> <p>I understand that the odds ratio says : "The odds of the dependent variable happening is 3.747 times higher i...
https://stats.stackexchange.com/questions/283026/understanding-multiple-logistic-regression-interactions
Question: <p>I have two categorical variables and I want to run a binary logistic regression. I am stuck about checking the multicollinearity between the two and how to incorporate them.</p> Answer: <p>The predictors, let's call them var1 and var2, will be turned into dummy variables by the software performing your lo...
https://stats.stackexchange.com/questions/513131/how-to-incorporate-two-categorical-variables-in-a-logistic-regression
Question: <p>I have done binary logistic regression for a dichotomous outcome and used 5 predictors (3 continuous and 2 dichotomous); one of the dichotomous predictor gave a big number of OR and 95% CI (108.28, CI= 6.64- 1764.6, $p &lt; .001$). Is such a big number okay to report, or is something wrong? Sample size was...
https://stats.stackexchange.com/questions/81439/the-or-and-95-ci-for-logistic-regression-were-very-high
Question: <p>Suppose I have data from coin-flip experiments done in differenet conditions X. I want to estimate P(X), the probability of getting heads.</p> <p>What I would normaly do is try logistic regression, where I assume $P(X) = \frac{1}{1+e^{\beta (X-X_0)}}$, but in this case I know for sure that the probability...
https://stats.stackexchange.com/questions/154833/choice-of-discrete-non-monotonic-response-model
Question: <p>I am using logistic regression (PROC LOGISTIC) and for both of my two models, the Hosmer and Lemeshow Test is significant. I also computed AUC :</p> <p>AUC(model 1) = 0.583 and AUC(model 2) = 0.604.</p> <p>How can I choose one of them ?</p> Answer: <p>Model 2 has the higher area under the response curve...
https://stats.stackexchange.com/questions/271025/choose-a-model-when-the-hosmer-and-lemeshow-test-is-significant
Question: <p>Hey I want to build a model which predict probability of bankruptcy. One of my independent variables is categorical and takes only two values: 1 or 0. How to decide if I should create two separate models becauase of this variable? Which tests should I use?</p> Answer: <p>It is totally fine to have a categ...
https://stats.stackexchange.com/questions/524622/regression-analysis-two-models-instead-of-one
Question: <p>I see a lot of examples of linear regression like this:</p> <p>y = a1<em>x1 + a2</em>x2 + a3<em>x3 + a4</em>x4 + (a3*a5)<em>x5 + (a4</em>a5)*x6.</p> <p>But I would like to write something similar for a logistic regression. I am not interested in being mathematically precise because the message I want to co...
https://stats.stackexchange.com/questions/526540/how-can-i-express-a-logistic-regression-equation
Question: <p>Basically, how do you convert a one unit change in <span class="math-container">$x_1$</span> to a <span class="math-container">$Z\%$</span> change in <span class="math-container">$Y$</span>?</p> Answer: <p>You can't (not without more information). The point here is that the logit / logistic is not a <a h...
https://stats.stackexchange.com/questions/423167/how-do-you-convert-a-log-odds-ratio-into-a-marginal-effect