similar to: Monotonic interpolation

Displaying 20 results from an estimated 1000 matches similar to: "Monotonic interpolation"

2008 Jun 02
0
Missing "spline_coef" DLL and Rob Hyndmans monotonic interpolator
Hello R help I have been trying to use Rob Hyndman's monotonically increasing spline function. But like another user or two seem have a problem with a missing DLL (namely "spline_coef"). None of the previous help postings seemed to have any solutions to this problem. As per a Ripley suggestion I have deleted all previous versions of R and reinstalled R 2.7.0 and the problem
2006 Mar 17
1
Derivative of a splinefun function.
Is there a way of calculating the derivative of a function returned by splinefun()? Such a function is a cubic spline, whence it has a calculable derivative, but is there a (simple) way of getting at it? One workaround that I have thought of is to take a fine grid of points, evaluate the function returned by splinefun() at these points, put an interpolating spline through these points using
2010 Feb 15
1
Non-monotonic spline using splinefun(method = "monoH.FC")
Hi, In my version of R, the stats package splinefun code for fitting a Fritsch and Carlson monotonic spline does not appear to guarantee a monotonic result. If two adjoining sections both have over/undershoot the way the resulting adjustment of alpha and beta is performed can give modified values which still do not satisfy the required constraints. I do not think this is due to finite precision
2008 Sep 04
1
Interpolation Function f(y)
Hello friends!!! I have a list of values called y. The list is y=c(221.0, 212.0, 206.0, 202.7, 198.4, 195.1, 192.2, 189.7, 187.6, 185.8); y is f(x) and x=c(10,20,30,40,50,60,70,80,90,100). I only have x and y. I don?t know f(x). I would like interpolate f(x) to obtain other values as f(15), f(25), f(35) and if it was possible obtain f(110), f(120). is there any function that allow me obtain
2009 May 29
1
Problem making a package using S4 objects.
Hello. I've developed an algorithm in R which I need to package. The implementation uses S4 objects and it's divided in 5 files. Everything is working fine when I load the files into the R console but when I try to make a package I get an error that I don't quite understand. Here's what I do: *1.* in R console, I do and get: > package.skeleton(name='remora') Creating
2005 Jul 24
1
Buglet in src/appl/splines.c (PR#8030)
--AZaLVt6Pw+ Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Dear all, I was looking at "splinefun" and the underlying C code and believe that there is a memory access error in the C routine "spline_eval". Specifically, on line 368 and following the following code appears: if(ul < x[i] || x[i+1] < ul)
2009 Feb 05
3
how to separate char and num within a variable
Hi all, I read in a column which looks like "chr1:000889594-000889638", and need to break them into three columns like "chr1:", "000889594" and "000889638". How shall I do in R. Thanks a lot for your suggestions! Bill
2011 Feb 01
3
Matching patients
May I ask a clinical question? For a trial, we have a treatment group of small size, say 30 patients. We want to selectmatching control patients from a bigger group (100 patients) in terms of several clinical variables, such as age, tumor stage etc. This practice is to select the closest matching set of control cases. I wonder if R has any routine or package that can help with this problem.
2011 Feb 05
3
spline interpolation
Hello R-help I have the following data for a standard curve concentration(nM),fluorescence 0,48.34 2,58.69 5,70.83 10,94.73 20,190.8 50,436.0 100, 957.9   (1)Is there function in R to plot a spline. (2)How can I interpolation,say 1000 point from 0nM-100nM and store this as a data frame of concentration,fluorescence (3)How can I modify the code below so that instead of retrieving a concentration
2004 Jul 20
0
Suggestion for quantile.default()
I'm not sure who is responsible for quantile(), but I assume they read this list. Ivan Frohne and I have produced a revision of the quantile.default() function which enables the computation of alternative sample quantile definitions. The code and .Rd file are attached. This enables the user to produce quantiles that are equivalent to those in various statistics package. There is a type
2006 Jul 28
1
Calculate x-values from a spline
Hello, I calculate splines from messured points(x,y) of an unknown function f(x). e.g. x <- c(0.004115, 0.012345, 0.037037, 0.111110, 0.333330, 1.000000) y <- c(37, 50, 45, 60, 50, 66) w <- c(0.8540541, 0.8320000, 0.8822222, 0.7983333, 0.8220000, 0.8151515) as weights f <- smooth.spline(x,y,w) Now I have y-values and want to calculate the x-value(s) from this spline. There is no
2013 Feb 01
29
cumulative sum by group and under some criteria
Thank you very much for your reply. Your code work well with this example. I modified a little to fit my real data, I got an error massage. Error in split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) : Group length is 0 but data length > 0 On Thu, Jan 31, 2013 at 12:21 PM, arun kirshna [via R] < ml-node+s789695n4657196h87@n4.nabble.com> wrote: > Hi, > Try this: >
2002 Dec 12
2
Problem with dyn.load in R1.6.1
I've been successfully using a dll via dyn.load() with R1.6.0 for Windows, but when I try it under R1.6.1 it manages to crash the program completely. Has there been a change in how R1.6.1 handles dynamic loading? I couldn't spot any such changes in the documentation. This problem occurred on two different machines, and both run the code under R1.6.0 without a problem. Rob Hyndman
2003 Jul 07
1
Problems with a dll under windows
I am trying to get a dll compiled for use with dyn.load. I use R.1.7.1 under Windows. I have tried the following trivial example based on the "Writing R extensions" manual. rtest.h -------- class X { public: X (); ~X (); void Give7(double*); }; class Y { public: Y (); ~Y (); }; rtest.cpp --------- #include <iostream.h> #include "rtest.h" static Y y;
2008 Oct 06
1
splinefun gives incorrect derivs when extrapolating to the left (PR#13132)
This is a low priority bug that has been around for a while, but I came acr= oss it again while alpha testing 2.8. The resulting function for splinefun gives incorrect deriv values when x is= less than the smallest x-value used to create the function (at least in on= e circumstance), but does the correct thing for x greater than the largest = x-value. Here is an example: > x <- 1:10 >
2016 May 01
2
Storage of byte code-compiled functions in sysdata.rda
Hi r-devels, we are seeing a new problem with our packages RobAStRDA (just new on CRAN, thanks to Uwe and Kurt!) and RobExtremes (to be submitted). It must be something recent with the way you internally treat/store byte-code compiled functions, as we have no problems with R-3.1.3, but do see an "Error in fct(x) : byte code version mismatch" with R-devel SVNrev r70532. Background:
2012 Jun 06
2
how to remove part of the string
Dear all, Does any one know how to remove part of the string? For example, "LTA4H||Leukotriene A4 hydrolase" is a gene name plus gene description. I hope to remove "||Leukotriene A4 hydrolase". What would be the R code to do that using gsub()? Many thanks! Bill
2011 Jul 27
3
Ordinary Least Products regression in R
Dear all, Does any one know if any R package or function can do Ordinary Least Products regression? Many thanks! Bill
2017 Feb 27
0
stats::median
>>>>> Rob J Hyndman <Rob.Hyndman at monash.edu> >>>>> on Wed, 15 Feb 2017 21:48:56 +1100 writes: > The generic stats::median method is defined as median <- > function (x, na.rm = FALSE) {UseMethod("median")} > I suggest that this should become median <- function (x, > na.rm = FALSE, ...)
2010 Mar 12
1
Usage of apply function with two matrices
Hello, I am struggling to overcome following problem: I have matrix Vf and matrix V, which both have 3 columns and I want to create a spline function basing on coordinates from this matrices (more precisely coordinates of function nr 1: x are taken from Vf[,1] and y are taken from V[,1] respectively), because function apply() base on 1 argument I made it in this way: