Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 297627

Use this tag for any *on-topic* question that (a) involves `R` either as a critical part of the question or expected answer, & (b) is not *just* about how to use `R`.

0 votes

How can I include random effects (or repeated measures) into a randomForest

There is now an R package called SAEforest that provides the command MERFranger: https://cran.r-project.org/web/packages/SAEforest/index.html The focus of the package is not precisely on the MERF. …
Nerd's user avatar
  • 49
0 votes

Tobit panel data or panel data with truncated dependent variable

You can estimate Tobit regresssions with random intercepts with the censReg package and with the pldv command of the plm package.
Nerd's user avatar
  • 49
0 votes
1 answer
101 views

test proportional odds assumption of lagged variable in ordered logistic regression

I want to estimate transition probabilities between different disease states called "Remission", "Mild" and "moderate/severe". I have an unbalanced panel of 250 patients with time differences between …
Nerd's user avatar
  • 49
0 votes
Accepted

test proportional odds assumption of lagged variable in ordered logistic regression

In the end I created two new variables for lag(Mod_Sev) and lag(Mild) so that I did not need to use the lag() operator in the regression formula.
Nerd's user avatar
  • 49
0 votes
Accepted

Test score Variable interpretation in Brandsma data (mice package)

In the end I assumed that the test results each have their own maximum number of points and that lpr, apr, lpo and apo give the number of points each student achieved. As far as I understand, we don't …
Nerd's user avatar
  • 49
0 votes
2 answers
388 views

How to do LASSO regression with a dependent variable that has two limits

I would like to estimate a LASSO regression for a dependent variable that has a lower limit at -0.661 and an upper limit at 1 in R. …
Nerd's user avatar
  • 49
2 votes
1 answer
2k views

Linear probability model: Why do lm() and glm() not give the same results in R?

I do realise that R does not specify binomial(link = "identity") as a family object for models. However, it does not give an error or warning message when I use it. … So I have two questions: What does R do differently when it uses glm and not lm for estimating the linear probability model? …
Nerd's user avatar
  • 49
0 votes
1 answer
40 views

Test score Variable interpretation in Brandsma data (mice package)

I am currently working with the Brandsma data of the mice package in R for teaching purposes. … A. & Bosker, R. J. (2011). Multilevel analysis: An introduction to basic and ad-vanced multilevel modeling. Sage. Brandsma, H. P., & Knuver, J. W. M. (1989). …
Nerd's user avatar
  • 49
2 votes
1 answer
2k views

Making sense of importance measures offered in Ranger

I have trained a regression forest using the R package ranger. Now I would like to discuss the variable importance measures of the included features. …
Nerd's user avatar
  • 49