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 64215

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`.

3 votes
0 answers
45 views

How do I measure how close to a certain standard distribution some data is?

Consider this (R) data: nd1 <- rnorm(100) nd2 <- rnorm(100) pd1 <- rpois(100, 2) pd2 <- rpois(100, 2) I want to define two functions - f1 and f2: f1 <- function(vec) {...} f2 <- function(vec1, vec2 … Are there pre-built functions in R that can do this? I saw this other question that mentions the Kullback–Leibler divergence, but not sure if that can be used to define these functions. …
Anand's user avatar
  • 131