Custom functions in r - histogram

Assignment Help Basic Statistics
Reference no: EM132849262

Custom Functions in R - Histogram

In this assignment, we will build custom functions in R. As an example, the following function called addPercent converts a value into a percentage with one decimal place.

addPercent - function(x){

 percent - round(x*100, digits = 1)

 result - paste(percent, "%", sep = "")

 return(result)

}

Below are a few output results from this function. 

addPercent(.1)

[1] "10%"

addPercent(10)

[1] "1000%"

addPercent(10.1)

[1] "1010%"

addPercent(0.1443)

[1] "14.4%"

  1. Please provide a custom R function that inputs a temperature in Fahrenheit Fo and converts to Celsius Co. The relationship is Co = 5(Fo - 32)/9.
  2. Please provide a custom R function that computes the sum of squares of two numbers.
  3. Please provide a custom R function that takes any univariate dataset and calculates the mean, minimum, maximum, and standard deviation.
  4. In statistics, a dataset needs to be transformed in order to meet certain assumptions. Please provide a custom R function that takes any univariate dataset and creates a histogram of the raw dataset and a histogram of the log-transformed dataset. 
  5. Please provide a custom R function of your own. Describe what your function does and produce the output.

Include your functions along with at least four different output results from each of the functions 1 through 5.

Reference no: EM132849262

Questions Cloud

Sampling methods and statistical graphs in reallife : How can we apply our knowledge on sampling methods and statistical graphs in real-life?
Independence assumption of a two-sample t-test : Explain how the independence assumption of a two-sample t-test is violated in a randomization model, such as the one we used for the schistosomiasis data.
NRSG371 Building Healthy Communities Assignment : NRSG371 Building Healthy Communities Assignment Help and Solution, Australian Catholic University - Assessment Writing Service
Compute the probability that a randomly selected person : Exclude leap years from the following calculations. (a) Compute the probability that a randomly selected person does not have a birthday on November 4.
Custom functions in r - histogram : In this assignment, we will build custom functions in R. As an example, the following function called addPercent converts a value into a percentage with one dec
What is the distribution of the amount of money a player : What is the distribution of the amount of money a player will spend during their first year of playing? (include any parameter value(s))
What Ingleside Industries would report on its balance sheet : Complete the table below to show what Ingleside Industries would report on its balance sheet in 2020 and on its income statement in 2020 and 2021
Difference between expected payoff with perfect information : What is the difference between the expected payoff with perfect information and the maximum expected value called macimum worth of perfect information normal
What would make a abstract section in a research article : What would make a abstract section in a research article questionable in order to disregard the abstract section?

Reviews

Write a Review

Basic Statistics Questions & Answers

  Does this probability depend on thevalues of mean

What is the probability that chloride concentration diers from the meanby more than 1 standard deviation? Does this probability depend on thevalues of mean and standard deviation

  How many of the employees speak neither german nor dutch

If there are 10 who speak both German and Dutch, how many of the employees speak neither German nor Dutch? Illustrate your answer with a Venn diagram.

  In a survey of 300 college graduates 55 reported that they

in a survey of 300 college graduates 55 reported that they entered a profession closely related to their major if 7 of

  Design a biproper compensator of degree

Consider a plant with transfer function (s) = 1/(s - 1). Suppose a disturbance of form wet) = a sin(2t +?), with unknown amplitude a and phase ?a

  Determine the expected value of the average

1) Determine E(X) 2) Determine the expected value of the SUM of three draws, with replacement, from the set of numbers, 3) Determine the expected value of the AVERAGE of the three draws made in the second question.

  Multiple-choice questions

Multiple-Choice Questions, High quality research has which of the following characteristics?

  Details regarding statistics-hypothesis testing

Heather Carielli is a former student who earned a master degree at the Univeristy of Arkansas. When she randomly selected 16 new text books in the college book store she found that they had prices with a mean of $70.41 and a standard deviation of ..

  Mean for the discrete data

Given are the numbers of times the machine was used over each of the last 30 days. Find out the mean number of times the machine was used per day.

  Minimizing shipping costs

Finnish Furniture manufactures tables in facilities located in three cities- Reno, Denver, and Pittsburgh. The tables are then shipped to three retail stores located in Phoenix, Cleveland, and Chicago.

  Allied health profession in the united states

1. Describe three studies that were critical to the practice of nursing or an allied health profession in the United States.

  Determining binomial probability

Suppose that 30% of the population has black hair. In a randomly-selected group of six people, how probable is it that

  A random sample of 400 las vegas residents are asked how

a random sample of 400 las vegas residents are asked how much money they spent on entertainment in the past week. these

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd