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 254244

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

how to fit Cox PH model in r (more than one factors)?

If you know with fairly high certainty that a covariate has clinical relevance, you include it in the model even if it happens to fit badly on your training data. Essentially, your prior is strong eno …
kqr's user avatar
  • 834
0 votes

Accounting every minute data

There's a much easier way to create daily totals: sum up the entries you do have, and then multiply by 1440/n, where n is the number of entries you have. This -- like the method you suggest -- depends …
kqr's user avatar
  • 834
0 votes

How to determine reliability of a change in an arbitary metric

The simplest method I can recommend in this case is permutation testing. You basically have two groups of values (A and B) and you want to know if B is meaningfully larger than A. Let's say you can me …
kqr's user avatar
  • 834
0 votes
Accepted

One tailed prediction intervals for Multiple Linear regression

Yes. You simply ignore the upper end of the CI as it is not relevant to you. The trick is to manipulate the level argument to predict. If you specify level=0.9, it will produce a confidence interval …
kqr's user avatar
  • 834
13 votes
Accepted

How to compare -50% and +100%

The problem is twofold: You shouldn't subtract one. Just divide one by the other, and you'll get relative numbers 1, 2, 0.5 -- equivalent to 100 % (no change), 200 % (double) and 50 % (half.) Then to …
kqr's user avatar
  • 834
0 votes

Confidence interval for the difference of two negative binomial rates

Draw, with replacement, a random sample from your observations. The size of the sample should be the same as that of your observations. For this random sample, fit the model as you have above. For …
kqr's user avatar
  • 834