Hello!

Someone know what are the difference between R and S-PLUS in the density()
function?

For example, I would like to reply this simple S-PLUS code in R, but I don't
understand which parameter I should modify to get the same results.

S-PLUS CODE:
density(1:1000, width = 4)

R-CODE:
density(1:1000, bw = 4, window = "g",  n = 50, cut = 0.75)

I obtain the same x values, but different y values. I try also different
examples, with different parameter.

Can you help me?

Thank you in advance.

Nicola Sturaro

	[[alternative HTML version deleted]]

