Completed

Construct an histogram from time series and calculate bandwidth in R

This project was successfully completed by HamadaQuant for $155 USD in 3 days.

Get free quotes for a project like this
Employer working
Completed by:
Project Budget
$30 - $250 USD
Completed In
3 days
Total Bids
8
Project Description

I have some time series which I want to construct the histogram, find the optimal binwidth and find the optimal bandwidth h. My main goal is to get the bandwidth. I need the code in R.

This is one model I found but as I'm very new in R, I don't really understand what's is going on.

> library(MASS)
> par(mfrow=c(1,2)) # Make device region 1 by 2
> attach(geyser)
> hist(waiting,prob=TRUE)
> lines(density(waiting)) # Add density to Histogram
> plot(density(waiting)) # Create density by itself

This code give one histogram and another graph with the bandwidth value. See pdf file attached.

So, I need a coder with experience in R and histograms. Don't consider skills needed since these are just to enter 5 mandatory virtual skills.

Thank you.

Taaroa

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online