search for: tcrit

Displaying 4 results from an estimated 4 matches for "tcrit".

Did you mean: scrit
2007 Sep 25
2
Need help with function writing
...mean) varvec=tapply(yvec,trtvec,var) nvec=table(trtvec) error.df=nvec[1]+nvec[2]-2 pooled.var=((nvec[1]-1)*varvec[1]+(nvec[2]-1)*varvec[2])/error.df diff12estimate=ybar[1]-ybar[2] stderr=sqrt(pooled.var*((1/nvec[1])+(1/nvec[2]))) tratio=diff12estimate/stderr twosidedP=2*(1-pt(abs(tratio),error.df)) tcrit=qt(1-alpha/2,error.df) lower=diff12estimate-tcrit*stderr upper=diff12estimate+tcrit*stderr calpha=1-alpha out=data.frame(diff12estimate,stderr,tratio,twosidedP,lower,upper,alpha) names(out)=c("Estimator","SE","T","P-value","Lower CI","Upper CI&...
2007 Sep 24
1
hypothesis testing
...mean) varvec=tapply(yvec,trtvec,var) nvec=table(trtvec) error.df=nvec[1]+nvec[2]-2 pooled.var=((nvec[1]-1)*varvec[1]+(nvec[2]-1)*varvec[2])/error.df diff12estimate=ybar[1]-ybar[2] stderr=sqrt(pooled.var*((1/nvec[1])+(1/nvec[2]))) tratio=diff12estimate/stderr twosidedP=2*(1-pt(abs(tratio),error.df)) tcrit=qt(1-alpha/2,error.df) lower=diff12estimate-tcrit*stderr upper=diff12estimate+tcrit*stderr calpha=1-alpha out=data.frame(diff12estimate,stderr,tratio,twosidedP,lower,upper,alpha) names(out)=c("Estimator","SE","T","P-value","Lower CI","Upper CI&...
2004 Oct 06
1
Foreign code problem
Hello, I wanted to test the odesolve package and tried to use compiled C-code. But when I do: erg <- lsoda(y, times, "mond", parms, rtol, atol, tcrit=NULL, jacfunc=NULL, verbose=FALSE, dllname="mond", hmin=0, hmax=Inf) I get the error message: Error in lsoda(y, times, "mond", parms, rtol, atol, tcrit = NULL, jacfunc = NULL, : Unable to find mond in mond The C code is: #incl...
2005 Jul 27
4
odesolve/lsoda differences on Windows and Mac
...PU Type: PowerPC 970 (2.2) Number Of CPUs: 2 CPU Speed: 2 GHz L2 Cache (per CPU): 512 KB Memory: 1.5 GB Bus Speed: 1 GHz Boot ROM Version: 5.0.7f0 Serial Number: XB3472Q1NVS My Error Message > system.time( + outAc2 <- as.data.frame(lsoda(xstart,times, pondamph, parms, tcrit=170*730, hmin=.1)) + ) [1] 0.02 0.01 0.04 0.00 0.00 Warning messages: 1: lsoda-- at t (=r1) and step size h (=r2), the 2: corrector convergence failed repeatedly 3: or with abs(h) = hmin 4: Returning early from lsoda. Results are accurate, as far as they go Thanks for any input. Han...