Displaying 3 results from an estimated 3 matches for "denstity".
Did you mean:
density
2010 May 24
2
adding one line to a plot
...alpha/2,n+m-2))
n.reject=n.reject+1 # reject if |t| exceeds critical pt
}
true.sig.level=n.reject/N # est. is proportion of rejections
true.sig.level
And then I would like to plot the observed t values (in the vector
"tstat") against the values of the t density with df=18. Somehow, my t
denstity (code line 2 below) does not show up:
plot(density(tstat),xlim=c(-5,8),ylim=c(0,.4),lwd=3)
lines(x,dt(x,df=18))
legend(4,.3,c("exact","t(18)"),lwd=c(3,1))
Thanks a lot!
D.
2010 Jan 18
1
density() vs. KernSmooth::bkde
Any advice when to use denstity() and when the KernSmooth package bkde()
to smooth a histogram?
No specific problem to use either one, but I'm curious why there are two
so similar implementations.
Thanks!
mario
--
Ing. Mario Valle
Data Analysis and Visualization Group |
http://www.cscs.ch/~mvalle
Swiss Nat...
2013 Sep 19
3
How do I ensure that the polygon in spatstat::owin(poly=<polygon>) does not have “negative area”
...] ..... [etd 3:36] ....90 [etd 3:22] .....
[etd 3:11] ....100 [ etc.
I got messages complaining about intersecting vertices, etc. and it failed
to build the polygon.
Some context on problem: I am trying to use functions in spatstat for
spatial relative risk calculations, i.e, the spatial ratio of denstity of
cases vs. controls. For that I need an observation window and point plot
within that window. I could cheat and make the observation window a
rectangle around massachusetts but that would presumably distort values
near the coast. In any case, I'd like to learn how to do this right for any
fut...