Displaying 2 results from an estimated 2 matches for "deivat".
Did you mean:
deivit
2009 Aug 13
1
power.t.test (PR#13891)
...oaches 1, so should the power. However,
power.t.test('n'=5,'d'=1,'sig.level'=1) yields a power of 0.9430769. I've
compared it to the equivalent function in the 'pwr' package, pwr.t.test, and
while power.t.test gives a smooth function with respect to sig.level, it
deivates systematically more and more as sig.level is increased.
pwr.t.test('n'=5,'d'=1,'sig.level'=1) gives the correct power of 1.
2. I've run empirical simulations and found that the power predicted by
pwr.t.test is correct and so it is clear that power.t.test is inaccurate...
2011 May 27
1
finding derivative of a data series in R
...erivative of a polynomial in R
i<- -10:10
x<-i*i*i+3*i*i+2
fun_spline<-splinefun(i,x)
plot(x,type="l")
lines(x,fx_spline(x, deriv=1), col='green')
lines(x,fx_spline(x, deriv=2), col='green')
Now when I plot
3*i*i + 6*i and 6*i + 6
the plot was not same for first deivative.
where as the 2nd derivative was same
Is this a correct method for getting derivative.
where am I doing wrong as first derivative? lines(x,fx_spline(x,
deriv=1), col='green') is not correct.
amar
--
Amar Kumar Nandan