Skip to main content
eipi10's user avatar
eipi10's user avatar
eipi10's user avatar
eipi10
  • Member for 13 years, 10 months
  • Last seen this week
  • California
revised
Intepreting linear regression
added 331 characters in body
Loading…
revised
Intepreting linear regression
added 2 characters in body
Loading…
revised
Intepreting linear regression
deleted 2 characters in body
Loading…
answered
Loading…
revised
Loading…
suggested
Approve
awarded
Loading…
awarded
revised
Loading…
revised
Loading…
revised
Loading…
revised
Loading…
Loading…
comment
Why does this distribution look completely different after splitting into groups?
You might just be seeing the effects of different bandwidths being chosen for each density estimate.
comment
R: Logistic Regression with L2-Penalty and output of coefficient significance
The covTest package is an experimental R package for significance tests with regularized regression (the paper introducing it is here). I haven't used it, but it's by the folks who invented the lasso and who authored the glmnet package for regularized regression in R (glmnet vignette here).
comment
NA in glm model
Also, as @AdamQuek mentioned, it probably doesn't make sense to have MemberID in the regression.
comment
NA in glm model
It probably makes more sense to drop TotalVisits since it's the sum of InpatientDays, ERVisits, and OfficeVisits.
comment
NA in glm model
When you have a variable that's a linear combination of other variables (for example, if you have independent variables x, w, and z, but x = aw + bz (where a and b are any real constants other than zero), then x is a linear combination of w and z) you're essentially asking glm to estimate n + 1 regression coefficients with only n equations. But there's no unique solution in that case.
comment
NA in glm model
glm drops one of the linearly dependent variables from the regression and returns NA for that coefficient. It has nothing to do with whether there are NA values in your data.