Questions tagged [linearmodels]

A python package which provides estimation and inference in some common linear models including panel data and instrumental variables estimators. For questions related to implementation or interpretation of a linearmodels estimator.

linearmodels is a package which provides some more complex linear estimation techniques to Python, based around numpy and pandas.

Common linear models such as Two-stage least squares, Generalized Method of Moments etc. are missing from the popular statsmodels package and this package fills that gap.

141 questions
-1
votes
2 answers

How to generate a summary of a linear model using two conditions in R?

Assume that a dataset has the variables Age, Gender and Height. How to create a linear model based on age that only considers ages between 18 to 21. This is what i have so far and it works, but I don't know how the && operator works in R. model1 <-…
Loizos Vasileiou
  • 674
  • 10
  • 37
-1
votes
1 answer

how can I find the highest R squared value for a particular variable (in python)?

In the linear model y = a_0 + (a_1 × x_1 ) + (a_2 × x_2 ) + (a_3 × x_i ) + ϵ , what value for i∈[3,4,…,100] results in the model with the highest R-Squared? Given the CSV file with one dependent and 100 independent variables.
ashish jangir
  • 111
  • 1
  • 2
  • 9
-1
votes
1 answer

How to apply one model for different categories of interest in python?

I have a daily sales dataset of 4 items which is sold across 4 different franchises. I have to build a model to predict the weekly sales of all those 4 items for all the franchises. I am planning to use one base model for prediction reg =…
Ahamed Moosa
  • 1,395
  • 7
  • 16
  • 30
-1
votes
1 answer

Sum of probability always gives as 1 (100%) in SGDClassifier in python

I'm predicting some value based on my training dataset and calculating probability, summing them which always gives me 1 or 100% This is my training data Address Location_ID Arham Brindavan,plot…
Andre_k
  • 1,680
  • 3
  • 18
  • 41
-4
votes
1 answer

How can I find two missing parameters in r using lm() function?

I was asking to find best fit values for two unknown parameters using the lm() function in r, I have used the lm function before but I am unsure of how to do this for unknown parameters? I need to use the lm function on this formula log⁡(C)~…
1 2 3
9
10