Top "Linear-regression" questions

for issues related to linear regression modelling approach

How to extract the regression coefficient from statsmodels.api?

result = sm.OLS(gold_lookback, silver_lookback ).fit() After I get the result, how can I get the coefficient and …

python pandas linear-regression statsmodels
ValueError: Expected 2D array, got 1D array instead:

While practicing Simple Linear Regression Model I got this error, I think there is something wrong with my data set. …

python-3.x scikit-learn linear-regression
How do I get RSS from a linear model output

Below is a linear model output for a dataset consisting of a response variable and three explanatory variables. How do …

r statistics rss linear-regression
AttributeError: LinearRegression object has no attribute 'coef_'

I've been attempting to fit this data by a Linear Regression, following a tutorial on bigdataexaminer. Everything was working fine …

python python-3.x scikit-learn linear-regression attributeerror
lme4::lmer reports "fixed-effect model matrix is rank deficient", do I need a fix and how to?

I am trying to run a mixed-effects model that predicts F2_difference with the rest of the columns as predictors, …

r regression linear-regression lme4 mixed-models
How to find the features names of the coefficients using scikit linear regression?

#training the model model_1_features = ['sqft_living', 'bathrooms', 'bedrooms', 'lat', 'long'] model_2_features = model_1_features + ['bed_bath_rooms'] model_3_features = …

python machine-learning scikit-learn linear-regression
Linear Regression :: Normalization (Vs) Standardization

I am using Linear regression to predict data. But, I am getting totally contrasting results when I Normalize (Vs) Standardize …

machine-learning linear-regression feature-extraction
Predicting values using an OLS model with statsmodels

I calculated a model using OLS (multiple linear regression). I divided my data to train and test (half each), and …

python pandas linear-regression statsmodels
R-squared on test data

I fit a linear regression model on 75% of my data set that includes ~11000 observations and 143 variables: gl.fit <- …

r linear-regression
Fitting logarithmic curve in R

If I have a set of points in R that are linear I can do the following to plot the …

r curve-fitting linear-regression logarithm