Search Results
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 |
15
votes
Why doesn't ML suffer from curse of dimensionality?
This is highly related to a key finding from this paper which found that when binary logistic regression needs 20 times as many events as parameters to not overfit, ML may require 200 events per candidate …
17
votes
How to handle with missing values in order to prepare data for feature selection with LASSO?
The choice of $c$ is arbitrary, & does not affect the estimates of the intercept $\beta_0$ or the slope $\beta_1$; $\beta_2$ describes the effect of $x$'s being 'not applicable' compared to when $x=c$. … See Meier et al (2008), JRSS B, 70, 1, "The group lasso for logistic regression" & the R package grplasso. …
8
votes
Accepted
Methods for fitting a "simple" measurement error model
hat{\beta}=s_y/s_x$, i.e. the ratio of the observed standard deviations (making the sign of the slope the same as the sign of the covariance of $x$ and $y$); as you can probably work out, this gives an intercept … Here is some R code to illustrate: the red line in the chart is OLS regression of $Y$ on $X$, the blue line is OLS regression of $X$ on $Y$, and the green line is this simple method. …
7
votes
Accepted
Are these two definitions of the coefficient of determination $R^2$ equal?
(by convention, a linear model contains an intercept $e$ of all ones) is:
\begin{align*}
Y := \begin{bmatrix} y_1 \\ y_2 \\ \vdots \\ y_n \end{bmatrix}
= \begin{bmatrix} e & x_1 & x_2 & \cdots & x_p … The form of your proposed $R_2^2$ inspires me considering the following form of the regression model (known as Standardized Multiple Regression Model, see Applied Linear Statistical Models by Kutner et …
6
votes
Best statistical analysis with (very) limited samples : MLR vs GLM vs GAM vs something else?
Linear regression is for modeling a Gaussian conditional distribution and would be applicable in a situation where you don't need to go beyond that assumption. … Error t value Pr(>|t|)
(Intercept) 0.028574 NaN NaN NaN
x1 1.148516 NaN NaN NaN
x2 0.421618 NaN NaN NaN
x3 -0.008065 …
30
votes
What is the intuition behind the idea that for linear regression, the number of observations...
This means that with two data points you can fit a simple linear regression model with an intercept and slope term (two parameters) and the line will go exactly through the data points. … If you have $k+1$ data points and $k+1$ parameters in your linear regression model (i.e., $k$ slope parameters plus an intercept term) then you can draw the line-of-best-fit$^\dagger$ exactly through the …
7
votes
Does every variable need to be statistically significant in a regression model?
We can simulate the true population values in R and see what the regression tells us:
#### Simulate ####
set.seed(1234)
n <- 1000
pa <- rnorm(n)
ma <- rnorm(n)
read <- 1 + 2*pa + (.0001 * ma) + rnorm(n … That is the entire point of a regression. We are sampling from the population and trying to use that sample to guess what the population is. …
5
votes
"manually" weighted regression
has an intercept but the software uses the without-intercept formula for R-squared on the "transformed" linear regression. … # While transformed linear regression doesn't have an intercept,
# what matters is whether the weighted regression has an intercept or not. …
9
votes
Which optimization algorithm is used in glm function in R?
working weights
betaold = beta
beta = solve(crossprod(X,W*X), crossprod(X,W*z))
# coefficient update based on quadratic approximation of log likelihood
# using weighted least square regression … ) outcome2 outcome3 treatment2 treatment3
3.044522e+00 -4.542553e-01 -2.929871e-01 -7.635479e-16 -9.532452e-16
coef(glm_irls(X=X, y=y, family=poisson(log)))
(Intercept) outcome2 …
6
votes
Can we calculate population mean response from GLMM by averaging over random effects?
What the package does is effect (deviance) code the contrast matrix so that the intercept is the mean between the groups' means. … But still that intercept is not quite the population average. …
11
votes
Accepted
Behaviour of regression toward the mean
It is worth remembering how the intercept is estimated in simple linear regression.
$$
b_0 = \bar y - \hat b_1 \bar x
$$
In this example, we have that $\bar y \approx \bar x = m$, so we can say
$$
b_0 … = (1 - \hat b_1)m
$$
That is, the intercept is a natural consequence of the slope's deviation from 1. …
14
votes
Accepted
How do we stop bayesian estimates from being overconfident?
The reference group (used for the intercept) is the non-native group and the comparison group (the slope) is the native group. … Suppose we are instead running a regression where the predictors are z-score standardized before entering the model. …
7
votes
Accepted
How to calculate the reference level interaction in regression in R?
In regression, perfect multicollinearity occurs when one predictor can be exactly predicted from others, causing redundancy. … Calculation: $\hat{y}(x=2, z=3) - [\hat{y}(x=1, z=1) + \beta_1 + \beta_3] = \beta_5 = 0.08697$
Conclusion
In regression models with interactions, reference-level combinations (such as $x_1:z_1$) are embedded …
6
votes
Log-transformed ratio to baseline as an outcome in longitudinal analyses
Frank Harrell discusses that in Chapter 7 of Regression Modeling Strategies. … In response to comment
A random intercept makes sense in the model I propose. …
6
votes
What kind of inter-rater-reliability metric to use for unbounded, real-valued data
The next thing to do is to do a linear regression of rater B against A, and of A against B. … Note that there is a relationship between Pearson's r and the angle between the above 2 regression lines (see wiki). For good agreement, we want a small angle between the 2 regression lines. …