Search Results
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 |
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`.
1
vote
methods to analyze zero-inflated data
Some standard strategies include censored regression models such as the tobit (zero-censored Gaussian) or continuous hurdle models (combining a binary and a zero-truncated model). Especially if the nu …
1
vote
generation of zero-inflated Poisson data in R
Hence, I'll explain the latter here using somewhat simplified R code. …
2
votes
Accepted
Structural change
You are correct that sctest() from the R package strucchange does not implement tests for the $k$ vs. $k+1$ break problem. …
1
vote
Accepted
Impact of weights on structural change tests in partykit
The lmtree() function as well as the the underlying mob() function distinguish weights being used as case weights (default) or proportionality weights. In the former case, the number of observations i …
2
votes
Accepted
Negative Binomial Inverse Link Command in R
This is also the standard link in glm.nb() in R - as well as in other R packages implementing the model. … An R implementation is available in the VGAM package, see https://www.rdocumentation.org/packages/VGAM/versions/1.0-6/topics/nbcanlink …
5
votes
How do I find the equation of a predicted beta regression curve?
To compute these quantities in R using the betareg package you can simply use the predict() method. For example, you can easily obtain $\mu_i$ using predict(object, type = "mean"). …
6
votes
Accepted
Encompassing Tests to compare models in R
If you want a convenience function to carry out this test in R, you can use the encomptest() function from the lmtest package:
encomptest(m1, m2)
The package also provides other tests for non-nested …
1
vote
Accepted
Beta regression betareg () output from independent ordinal and continuous variables
For an unordered factor the default in R is to use treatment contrasts, i.e., restrict the first coefficient to be zero and then estimate the other two in relation to that. …
5
votes
"Export" machine learning model from R
Of course, there are more machine learning models implemented in R than supported by the PMML standard or the pmml R package but there is quite a range of supported models. … The pmml package is also employed by the rattle data mining GUI in R. …
2
votes
Accepted
Removal of partitioning variable in final glmtree with new (unused) partitioner -- why?
The model-based recursive partitioning algorithm (MOB) decides in each step whether the parameters of the model are stable across the partitioning variables or whether there is a significant instabili …
4
votes
Evaluate glmtree model
The strategy you describe looks very reasonable. For evaluation you can use the usual kinds of measures that you employ for other binary classiers (or trees in particular): misclassification rate (or …
2
votes
Accepted
standard error estimate in CRCH
Without censoring the tobit model just reduces to a standard linear regression model (as correctly pointed out). The standard tobit model uses a Gaussian assumption where the maximum likelihood (ML) e …
8
votes
Accepted
How to implement CHAID decision-tree using R for continuous variable
This is the algorithm which is implemented in the R package CHAID. …
2
votes
Accepted
Interpreting Hurdle Model Output for Count Data in R
Simple things first: As in many other regression models, the intercept is not of interest per se but included to be flexible enough in the model. Whether or not it is significant is often not of inter …
1
vote
Accepted
R Decision Tree based on imbalanced data which was up-sampled
I share the critical view of upsampling raised in some of the previous comments. Especially for conditional inference trees there is the additional issue that the meaning of the $p$-values in the tree …