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 141356

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
Accepted

Accelerated time failure (AFT) model interpretation in R

What you're interest in, you can find in the line "groupB" of the table. Estimated parameter is 0.44, its exponential is 1.55, which means that elements in group B survive 1.55 times longer shorter by …
carlo's user avatar
  • 5,130
0 votes

Test for trend (ordinal predictor, continuous outcome)?

Jonckheere-Terpstra test is the tool you was probably looking for.
carlo's user avatar
  • 5,130
1 vote
Accepted

Finding similar groups in data

one simple solution, that requires no extra package: rownames(dt)= dt$stores dt$stores= NULL D= dist(dt, method= 'binary') #distance matrix tree= hclust(D) #hierarchical clustering (recoursive aggreg …
carlo's user avatar
  • 5,130
1 vote

Possible reasons for AUC=1 (from a fitted glm model)?

If the model manages to set apart successes and unsuccesses completely, AUC will be 1. you have very little data and many predictors, and some of them are very effective in predicting outcome, so no s …
carlo's user avatar
  • 5,130
2 votes
Accepted

R: Fit regression to asymptotic data

The exponential curve model you described can be achieved tranforming x: x1 = exp(-x) mod = lm(y~x1) This method is the most reasonable if you expect errors around the model underlying data to be …
carlo's user avatar
  • 5,130
2 votes

Proving that logistic regression on $I(X>c)$ by $X$ itself recovers decision boundary $c$ wh...

Indipendently on the distribution of $X$, if $C$ is computed in that deterministic way, estimation won't converge because there is no couple of parameters $\beta$ for which likelihood is maximized. …
carlo's user avatar
  • 5,130
3 votes

Simulation of logistic regression's accuracy

You didn't write it, but I will assume that $y \sim \mathcal B(p= 0.5)$. This is not secondary: different class proportions lead to different accuracy scores. Anyway, the fact is that the model uses t …
carlo's user avatar
  • 5,130
1 vote
Accepted

Stochastic blockmodel with continuous weights in [0,1]

You are right that the gaussian distribution refers to the numerical weights of the edges, and you are right that the marginal distribution of these edges is not where the gaussian is fitted, but rath …
carlo's user avatar
  • 5,130
1 vote

Repeated measurements with different measurement methods and uneven sample size - which test...

Answer about analysis 1 If you want to perform a Friedman test, you have to use 15 groups of 3 observations (one group for each combination of spine and fat size, and one observation for modality), s …
carlo's user avatar
  • 5,130
1 vote

How to find similarity in R or Python?

Anyway, I see an R package exists for Jaccard measure alone, fittingly called jaccard. …
carlo's user avatar
  • 5,130
0 votes

Mixing probabilities and probability densities

Proportionality is not fixing it, the point is different. Even if density and mass probability are two different things, and it's important to understand it when first approaching statistics, from a m …
carlo's user avatar
  • 5,130
3 votes
0 answers
1k views

R alternative to scikit-learn [closed]

As a statics researcher, I've been using R since university and I know it quite well, I also know that it's immediate, but it quickly gets chaotic, and this also happens because of the variety and inconsistency … For these and further reasons still, I would like to move back to R, but I know I would miss scikit-learn. …