Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 10500

Techniques for analyzing the relationship between one (or more) "dependent" variables and "independent" variables.

1 vote

How can I regress household income on three factors

It's not true or false. It's just saying that more children is correlated with households having lower income. Check the correlation between the two variables. There's certainly no causation here. We …
wcampbell's user avatar
  • 2,217
3 votes

Regression model where output is a probability

You could use a Poisson regression and add an offset for the size of each group. See When to use an offset in a Poisson regression? and poisson vs logistic regression for more explanation. …
wcampbell's user avatar
  • 2,217
2 votes

What do normal residuals mean and what does this tell me about my data?

Normality of the residuals is an assumption of running a linear model. So, if your residuals are normal, it means that your assumption is valid and model inference (confidence intervals, model predict …
wcampbell's user avatar
  • 2,217
4 votes
Accepted

Using interaction term for describing non-linear relationship in regression model

Yeah, how about a nonlinear regression model. There are a few models that are used all of the time in biostats. …
wcampbell's user avatar
  • 2,217
2 votes

Formula for non-linear regression in R

A nonlinear regression function is never going to decide the functional form for you. …
wcampbell's user avatar
  • 2,217
0 votes

Linear regression in matrix notation

I think I found the problem: when you went from the gradient to solving for $\beta$, you didn't reverse the order of the terms. The inversion should have been $$(x_nx^T_n)^{-1}=\frac{1}{x^T_nx_n},$$ …
wcampbell's user avatar
  • 2,217
0 votes

R-code question: model selection based on individual significance in regression?

So maybe it's not a good idea, but here's a start: #first, some simulated data y = seq(from = 1, to = 10, by = 0.5) x1 = y + rnorm(length(y)) #not a significant variable x2 = y * run …
wcampbell's user avatar
  • 2,217
1 vote

How to estimate the deposit mix of a bank using interest rate as the independent variable?

Also, I think this is more of a time series problem, not a cross sectional logistic regression problem. …
wcampbell's user avatar
  • 2,217
1 vote
Accepted

Is it ok to spit non-normal variables in tertiles and put them into multivariate regression ...

You can do this (put a continuous variable into bins) but it's generally considered a loss of information. It would be appropriate if there is clearly a different effect when moving from one bin to a …
wcampbell's user avatar
  • 2,217
27 votes
Accepted

Wald test in regression (OLS and GLMs): t- vs. z-distribution

For a standard linear regression, you assume the error term is normally distributed. Here, the variance parameter has to be estimated - hence the use of the $t$-distribution for the test statistic. …
wcampbell's user avatar
  • 2,217
2 votes

Simple introduction to linear models in R

I've spent a lot of time looking through R manuals. The best one that I've seen is Grant Farnsworth's "Econometrics in R". Check it out: http://cran.r-project.org/doc/contrib/Farnsworth-EconometricsIn …
wcampbell's user avatar
  • 2,217