Hi, Jim:

       A user has reported an error in "fdarm-ch09.R":  The way I read 
the following, the exponentiation function for an fd function currently 
works only with a spline basis, but the "harmonics" variable in the 
example in "fdarm-ch09.R" has a fourier basis.  I'm pretty confident 
that this example used to work, but it doesn't now with fda_2.2..7 and 
fda_2.2.8.


       Might you have the time to review this example and suggest a fix?


       Thanks,
       Spencer


On 5/10/2012 11:51 AM, Troels Ring wrote:
> Dear friends - I am trying to understand fda and working with the 2009 
> book from Springer. I run the scripts directly from a new installed 
> fda library and include sessionInfo() below. This is from the script 
> fdarm-ch09.R  - I seem to have got not fda_2.2.8  but 2.2.7 - is that 
> the problem? Where do I get .8 as I just reinstalled? Best wishes
> Troels Ring, Nephrology
> Aalborg, Denmark
>
> > betavar  = coefvar[2]*harmonics[1]^2 + coefvar[3]*harmonics[2]^2 +
> +            coefvar[4]*harmonics[3]^2
> Error in `^.fd`(harmonics[1], 2) : FDOBJ does not have a spline basis.
> > sessionInfo()
> R version 2.15.0 (2012-03-30)
> Platform: x86_64-pc-mingw32/x64 (64-bit)
>
> locale:
> [1] LC_COLLATE=Danish_Denmark.1252  LC_CTYPE=Danish_Denmark.1252
> [3] LC_MONETARY=Danish_Denmark.1252 LC_NUMERIC=C
> [5] LC_TIME=Danish_Denmark.1252
>
> attached base packages:
> [1] splines   stats     graphics  grDevices utils     datasets  methods
> [8] base
>
> other attached packages:
> [1] fda_2.2.7 zoo_1.7-7
>
> loaded via a namespace (and not attached):
> [1] grid_2.15.0    lattice_0.20-6 tools_2.15.0 


-- 
Spencer Graves, PE, PhD
President and Chief Technology Officer
Structure Inspection and Monitoring, Inc.
751 Emerson Ct.
San José, CA 95126
ph:  408-655-4567
web:  www.structuremonitoring.com


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to