About 14,400,000 results
Open links in new tab
  1. 21 Linear regression with grouped data - GitHub Pages

    How do I perform a linear regression on grouped data? Objectives. Be able to perform a linear regression on grouped data in R; Calculate the linear regression for individual groups and …

  2. Linear Regression and group by in R - Stack Overflow

    Jul 23, 2009 · I want to do a linear regression in R using the lm() function. My data is an annual time series with one field for year (22 years) and another for state (50 states). I want to fit a …

  3. Linear Regression on Group Data in R - GeeksforGeeks

    Apr 11, 2025 · Using the group_by() function you can group the data by a categorical variable and then apply the lm() function to each group using do(). group_by(group) groups the dataset by …

  4. How to perform group-wise linear regression for a data frame in R

    Jan 30, 2023 · I want to do a linear regression in R using the lm() function. My data is an annual time series with one field for year (15 years) and another for banks (60 banks). I want to fit a …

  5. Linear regression with group data - GitHub Pages

    In this post, we discuss linear regression with grouped data and explore whether a certain reduction can be made when there are multiple responses given a covariate. The problem is …

  6. Dealing with grouped data in a regression - Cross Validated

    Starting from your first approach: If you treat the data as if it had only 7 observations, you need to weight them with the size of the group. Refer to for how to do regression with weights in R.

  7. Perform Group-wise Linear Regression for a Data Frame in R

    Learn how to perform group-wise linear regression for a data frame in R with step-by-step instructions and examples.

  8. Do I need to group data for linear regression model?

    Nov 25, 2022 · Generally speaking, no, you’ll want to run the regression on your raw data, not aggregates. If your data have dependencies (e.g., multilevel/nested or repeated measures), …

  9. Running a model on separate groups - R-bloggers

    Sep 19, 2016 · Ever wanted to run a model on separate groups of data? Read on! Here’s an example of a regression model fitted to separate groups: predicting a car’s Miles per Gallon …

  10. 06 - Grouped and Dummy Regression - GitHub Pages

    We started this section by looking at how some data points are more important than others. Namely, those with higher sample size and lower variance should be given more weight when …

  11. Some results have been removed
Refresh