Questions tagged [lm]

lm is the name of the linear model (i.e. multiple regression) function in the statistics package R. For linear models in general use the linear-model tag instead.

lm is the name of the linear model (i.e. multiple regression) function in the statistics package R.

Use this tag to ask about the lm function in R.

For linear models in general use the linear-model tag instead.

Reference: lm help page

399 questions
1
vote
0 answers

Can we rank results of linear regression model using estimate, r-squared and p-value?

Is there a way to rank the results of a linear model applied across thousands of values? For e.g. I have a table of 6004 rows, each corresponding to a gene and the corresponding output of linear regression model (I used the lm function in R): …
Komal Rathi
  • 145
  • 1
  • 8
0
votes
0 answers

How is the distribution of the data of importance when comparing linear regression results?

I have come across a statistical modelling approach where the changes in nesting date over time are compared between 9 distinct populations of one single species. The method is described like this: we used simple linear regression of nest…
Recology
  • 135
0
votes
0 answers

Lm vector vector of const

Can I ask please: Using ols in lm. I found "surprise", when x is vector (mean is 0) and y is vector of 1 1 1 ...or vector of 0 0 0...(constant) When "forcing" lm without intercept (y~x-1), i get model where residuals "dont oscilate around 1". When I…
0
votes
1 answer

Work with predictor values not present in train dataset

I have a scenario where some of the values for predictors are not present in the train dataset, but are present in the test dataset. How do we handle this in regression? Here is what I have tried: f1: Test dataset s1: Train dataset f1[,c(328:1364)]…
Sam
  • 1