R commands Flashcards
pnorm
Finds the probability of values less than or equal to (or greater than or equal to) the value q (w/ either lower.tail=TRUE or lower.tail = FALSE), for a normal distribution with mean and standard deviation specified
qnorm
Finds the value below (or above) which an area of probability p occurs, in a normal distribution with mean and standard deviation as specified
dbinom
dbinom calculates the probability of a specific outcome/number of successes
pbinom
pbinom adds the probabilities of all outcomes/no. of successes less than or equal to a certain value, to calculate a cumulative result
pt
Basically just t-statistic entered into R to find corresponding p-value, used lower.tail = TRUE for negative t-statistic and lower.tail = FALSE for positive t-statistic
qt
Finds t-value
pchisq
Finds p-value for data with chi-squared distribution
qchisq
Finds a chi-squared critical value
pf
Gives the distribution function
qf
Gives the quantile function