Category "regression"

What is the interpretation of a residual against fitted values plot?

After performing a regression, you get the residuals and the fitted values for the dependent variable. Plotting them can yield insights over the violation of OL

how can I remove some NA rows but not all of them

I have multiple data frames with information about listed companies from the year 2000 So I want to put them in a list (lets call it df) because I want to do re

Errors attempting to use linearmodels.panel.PanelOLS entity effects (not time effects)

I have a Pandas DataFrame like (abridged): age gender control county 11877 67.0 F 0 AL-Calhoun 11552 60.0 F 0 AL-Coosa 11607 60.0 F 0 AL-Talladega 13821 NaN N

How can we make use of feature variables whose future values are fixed to predict target value?

With regard to time series features in a regression ML model. Suppose, we are living in a space colony. The temperature there is accurately under control, so we

Unbalanced panel error in PMG Analysis in R

I am trying to run a Fama Macbeth analysis in R, where I am using the 'pmg' function with the following code: Fpmg1 <- pmg(ret ~ HML_OBS + SMB + Mktrf + HML,

Is there a way to get statistics of weights obtained from Tensorflow?

I am interested in developing a logit-based choice model using Tensorflow. I am fairly new to this tool, so I was wondering if there is a way to get the statist

spatial panel regression in R: non conformable spatial weights?

I am trying to run a spatial panel regression in R with the splm package. So I have polygons with summarized data over time and I want to see how the dependent

How to improve the prediction of missing data using sklearn regression?

I need to predict some missing data. I have a dataset of production values over the last 7 year which are supposedly reported hourly. However many datapoints ar

Unexpected error - regression model using glm

I am trying to do a regression using glm but it is coming with an unexpected error Here is the code: mod1 <- glm(N_agreements ~ Population + PublicStaff + Ma

How to exclude NA values in lm function (regression)?

I am doing a regression analysis with 70 countries. My dependent variable is 'Inequality' and my independent variable is 'Sanction'. My original columns look as

Multiple regression: R splits Variable into multiple

Hey there i want to explore the effect of Age and Gender on points of a test via mlr. Yet when i type model <- lm(punkte~ Age + Gender, data = df) R gives m

Multi-output neural network combining regression and classification

If you have both a classification and regression problem that are related and rely on the same input data, is it possible to successfully architect a neural net

Neural Network for Regression with tflearn

My question is about coding a neural network which does regression (and NOT classification) using tflearn. Dataset: fixed acidity volatile acidity citric acid

Python : How to interpret the result of logistic regression by sm.Logit

When I run a logistic regression by sm.Logit (in the statsmodel library), part of the result is like this: Pseudo R-squ.: 0.4335 Log-Likeliho

To which value in the statsmodels summary relates the error bar size in the plot?

With the following code, I get a plot how the regression was done for my data. In the plot also vertical (error?) bars are shown. To which number in the sum

Rolling Window Regression by group in R (with dates)

THIS IS MY DATA I have a panel data in R, so I want to create a rolling window linear regression by group. For instance, I have a lot of dates from 1 to 618. E

How to obtain RMSE out of lm result?

I know there is a small difference between $sigma and the concept of root mean squared error. So, i am wondering what is the easiest way to obtain RMSE out of l

Find and draw regression plane to a set of points

I want to fit a plane to some data points and draw it. My current code is this: import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.py

R SUR regression with systemfit gets error "LU computationally singular: ratio of extreme..." can work around but still concerned about error margins

Before I get into the problem, I want to acknowledge that I have seen that there is a previous question that has been answered, and it gave me an idea for a wor

having a very large loss when I am training a regression loss

I want to predict the center of the pupil from an image. so I used a CNN with 3 Dence layer. so the input is an image and the output is a coordinate (X,Y). my m