A humble request
I'm not quite sure what "source the fonction" means. The wmtsa package is available from the archive as a compressed archive wmtsa_2.0-3.tar.gz. % tar xf wmtsa_2.0-3.tar.gz creates a directory wmtsa/ with subdirectories wmtsa/man and wmtsa/R plus some other files. The documentation is in wmtsa/man/*.md The source code is in wmtsa/R/*.R You look at either using whatever text editor you feel like. Looking at wav_xform.R I see hundreds of lines of code that only a mother could love, with a good table of contents but no really informative comments anywhere. I am reminded, as too often, that there are people who develop packages for R, and there are software engineers, but there are precious few software engineers developing packages for R. As it happens, I *am* a software engineer (amongst other things), and I do have a tolerably good knowledge of base R, and a high tolerance for looking things up in the documentation. But I would have to be paid quite a large sum of money before I would spend any time on this code-base. There are other currently maintained packages that might be able to do the job, so it would be a waste of my time. My advice is DON'T spend any time looking at this code. An R beginning WON'T understand it. DO ask your supervisor help you to select an alternative, and if you can't figure that out between you, ASK a more informative question.
On Mon, 4 Jul 2022 at 00:38, John Kane <jrkrideau at gmail.com> wrote:
Spenser, the idea to source the fonction makes sense but since tho OP is a very new beginner perhaps you could point him towards code showing him how to do this? I have never done this AFAIR, and while I suspect a few minutes googling would show me how, it is likely to be more difficult for a noobie. On Sun, 3 Jul 2022 at 07:25, Spencer Graves <spencer.graves at effectivedefense.org> wrote:
Muhammad Zubair Chishti:
What specifically have you tried? What were the results?
Please "provide commented, minimal, self-contained,
reproducible
code", per "the posting guide
http://www.R-project.org/posting-guide.html", as indicated in at the end of each email in this thread. And don't overlook the suggestion I made: Download the
archived
package. Do NOT try to compile it. Instead source only the function you
want, try to run it. With luck, it will work. If it doesn't, you will
get a diagnostic that can help you take the next step.
Spencer
On 7/3/22 1:28 AM, Andrew Simmons wrote:
It seems like this package was archived because package "ifultools" was archived. I tried installing "ifultools" from source, but it has a seriously large amount of C compilation issues. The main issue seems to be that variable PROBLEM was never defined anywhere, and it is unclear what its definition should be. Unfortunately, as far as I can tell, this issue is unfixable. If you want to install "wmtsa", you'll have to use an older version of R. Otherwise, you can use one of the other wavelet analysis packages that Richard O'Keefe mentioned. On Sun, Jul 3, 2022 at 2:01 AM Muhammad Zubair Chishti <mzchishti at eco.qau.edu.pk> wrote:
Dear Respected Experts and specifically Professor Richard O'Keefe, Thank you so much for your precious time and generous help. However,
the
problem is still there and I am just unable to resolve it due to the
lack
of expertise in R. Still, the hope is there. I believe that this
platform
can help me. Regards Muhammad Zubair Chishti School of Business, Zhengzhou University, Henan, China My Google scholar link: https://scholar.google.com/citations?hl=en&user=YPqNJMwAAAAJ My ReseachGate Profile: https://www.researchgate.net/profile/Muhammad-Chishti On Sun, Jul 3, 2022 at 9:11 AM Richard O'Keefe <raoknz at gmail.com>
wrote:
A postscript to my previous comment.
I used to supervise PhD students.
Let me advise you to write this issue up as a draft section for your
thesis.
1. Why I wanted to use the wmtsa package.
2. Why I didn't.
3. How I went about selecting a replacement.
4. What I chose and why that's the right choice.
5. How the analyses I wanted to do are done in
package X and what difference it makes.
Off the top of my head, the only reasons for struggling to use an old
package are to try to replicate someone else's results and/or to try
to use
their software (built atop the dead package) with new data. Well,
if you
get different results, that's interesting too, and then it's time to
work
harder to resurrect the dead package. Speaking of which, an easier route might be to set up a separate environment running an old version of R that *can* run the old code
and the
old code's dependencies. In fact trying to use the same versions
that the
work you're trying to reproduce used might make a lot of sense. Overall, I think selecting an alternative package that *is* currently maintained is the best use of your time, but your supervisor should be able to help you with that. Selecting
appropriate
packages is part of doing research, after all, and demonstrating that you can do it is all to the good, no? On Sun, 3 Jul 2022 at 15:24, Richard O'Keefe <raoknz at gmail.com>
wrote:
Can we start a step back please? wmtsa stands for Wavelet Methods for Time Series Analysis. OK, so you have some time series data, and for some reason you want to analyse your data using wavelets. No worries. But does it have to be THIS unmaintained package? Why not visit https://CRAN.R-project.org/view=TimeSeries and search for "wavelets" in the text? Oh heck, I might as well do it for you. <snip> *Wavelet methods* : The wavelets <https://cran.r-project.org/web/packages/wavelets/index.html>
package
includes computing wavelet filters, wavelet transforms and
multiresolution
analyses. Multiresolution forecasting using wavelets is also
implemented in
WaveletComp
<https://cran.r-project.org/web/packages/WaveletComp/index.html> provides some tools for wavelet-based analysis of univariate and
bivariate
time series including cross-wavelets, phase-difference and
significance
tests. biwavelet <https://cran.r-project.org/web/packages/biwavelet/index.html> is
a port
of the WTC Matlab package for univariate and bivariate wavelet
analyses.
mvLSW <https://cran.r-project.org/web/packages/mvLSW/index.html> provides tools for multivariate locally stationary wavelet
processes.
contains functions for simulation and spectral estimation of locally stationary wavelet packet processes. Tests of white noise using
wavelets
are provided by hwwntest <https://cran.r-project.org/web/packages/hwwntest/index.html>.
Wavelet
scalogram tools are contained in wavScalogram <https://cran.r-project.org/web/packages/wavScalogram/index.html>. Further wavelet methods can be found in the packages rwt <https://cran.r-project.org/web/packages/rwt/index.html>, waveslim <https://cran.r-project.org/web/packages/waveslim/index.html>,
wavethresh
<https://cran.r-project.org/web/packages/wavethresh/index.html>. </snip> Presumably there is a reason that nobody else has bothered to continue maintaining wmtsa. Perhaps one of those other wavelets + time series packages can do what you need? On Sun, 3 Jul 2022 at 04:12, Muhammad Zubair Chishti < mzchishti at eco.qau.edu.pk> wrote:
Dear Experts, I cannot find a package "wmtsa" for my R version "R 4.2.0". Kindly
help
me
to find it or share the link with me.
Although I tried the old version of "wmtsa" but failed.
Thank you for your precious time.
Regards
Muhammad Zubair Chishti
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.
[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 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. ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 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. ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 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. -- John Kane Kingston ON Canada ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.