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`.
21
votes
95% Confidence Interval for Proportions in R
@Coatless's method will get the job done in most cases (including the OP's case). However, for completeness, I thought I'd add a couple of other options.
Bootstrap Method
The function below draws n …
11
votes
Accepted
Why does this distribution look completely different after splitting into groups?
You're seeing the effect of R choosing different bandwidths for the grouped and ungrouped plots. … In the output below, notice how R chooses narrower bandwidths when considering each group separately, as compared with the case where both groups are combined. …
6
votes
Accepted
Standard deviation of residuals from a linear regression
Yes, that's correct. You can also extract this result directly from the model object. For example:
2/sd(resid(mtcars_lm))
[1] 0.6674783