similar to: Piecewise

Displaying 20 results from an estimated 2000 matches similar to: "Piecewise"

2009 Apr 21
1
Polyspline Integration
Hello, I wrote the function below to integrate polysplines and thought that it may be useful to others. Please consider this code released under the GPL2 or later. Thanks, Bill <<integrate.polySpline.R>> Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or
2011 Feb 08
1
Compiling a Tcl extension for an R package
Dear R developers, I plan to upload a first version of my R package RnavGraph to the R CRAN server in a week or two. However I'm still struggling with an image resizing function written in C as a tcl extension. I did all my development in Ubuntu, and everything works fine in Ubuntu, however my attempts to compile this C function under Windows or OSX have all failed. I provide a minimal self
2011 Jan 14
4
piecewise regression
Hello everybody!!!! Quick question, if you'd like to throw a little tip: does anyone knows a function that runs piecewise regression models with coefficients estimation and inferences ? Thank you [[alternative HTML version deleted]]
2005 May 30
3
Piecewise Linear Regression
Hi, I need to fit a piecewise linear regression. x = c(6.25,6.25,12.50,12.50,18.75,25.00,25.00,25.00,31.25,31.25,37.50,37.50,50.00,50.00,62.50,62.50,75.00,75.00,75.00,100.00,100.00) y = c(0.328,0.395,0.321,0.239,0.282,0.230,0.273,0.347,0.211,0.210,0.259,0.186,0.301,0.270,0.252,0.247,0.277,0.229,0.225,0.168,0.202) there are two change points. so the fitted curve should look like \ \ /\
2010 Jan 04
2
Piecewise regression in lmer
Dear all, I'm attempting to use a piecewise regression to model the trajectory of reproductive traits with age in a longitudinal data set using a mixed model framework. The aim is to find three slopes and two points- the slope from low performance in early age to a point of high performance in middle age, the slope (may be 0) of the plateau from the start of high performance to the
2012 Mar 25
2
Simple question regarding domain restrictions/piecewise functions in R
I am a novice R user. I would like to be able to graph some simple piecewise functions/functions with domain restrictions in R, but I'm having trouble defining such functions. For example, I would like to define the following function: f(x)={x^2 if -1<x<x; 1 if 2<x<3} Notably, the function is undefined outside of domain (-1,1)U(2,3). My best attempt in R is something like
2010 Aug 12
2
accessing tcl variables within R and tcl
Dear R users, I have some troubles with dealing with tclObj objects. I try to explain it with a toy example: Say I define the following tcl procedure which just prints out each list element library(tcltk) .Tcl('proc test {myList} { foreach i $myList { puts stdout $i } }') and I call it with: > tcl('test',letters[1:5]) # Works as expected Now say I define
2015 Sep 28
2
Link R with Tcl 8.6 on Windows
Dear all, I am working on an R package intended for CRAN that requires Tcl version 8.6 because of the TclOO tcl extension and the -angle option for canvas text items. R for Windows currently still ships with Tcl 8.5. Does anyone have experience with linking R under Windows to a Tcl interpreter of version 8.6? When I link R 3.2.2 (installed from the binary on Windows 8) to a custom Tcl
2008 Jan 01
3
Specify a correct formula in R for Piecewise Linear Functions?
Dear all, I have two variables, y and x. It seems that the relationship between them is Piecewise Linear Functions. The cutpoint is 20. That is, when x<20, there is a linear relationship between y and x; while x>=20, there is another different linear relationship between them. How can i specify their relationships in R correctly? # glm(y~I(x<20)+I(x>=20),family = binomial, data =
2000 Jul 27
1
Interpolation using a piecewise linear function in higher dimensions
Dear all, I am just wondering if anybody has implemented a function that can give a piecewise linear interpolation in more than 2 dimensions? I have looked at the akima package, but I would rather like a piecewise linear interpolation rather than a spline and while it did the job quite satisfactory for 2 dimensions, I need to interpolate in at least three dimensions. If anybody has implemented
2010 Jun 11
1
Windows, OSX and Linux: updating a graphic device and double buffering
Hello there, I'm struggling with the base graphics system on different operating systems. I would like to get an animation effect by re-plotting with the plot function. See the attached code example: move the slider quick from one side to the other. I experience different levels of success, depending on which OS I use. - Linux (Ubuntu >9.10, R 2.9.2-3): Each plot command gets
2010 Aug 10
1
Adding Tcl source to an R package
Dear R Community, I'm writing an R package with a lot of Tcl and Tk code. I use the Tcl wrapper functions provided by the tcltk package if possible. However I also define "pure" Tcl functions. I so far defined them with the .Tcl function, for example (in R): .Tcl('proc test {a b} { return [expr {sqrt(pow($a,2)+pow($b,2))}] }') so that I can use the procedures later on
2001 Dec 05
4
Questions about piecewise spline fitting
Hi All, I want to fit a piecewise spline of degree 1, i.e. a spline consisting of a straight line over each piece. I downloaded the R package pspline, then I have following questions: 1. in the program, the degree of the spline is specified by 2*norder-1. Why do they adopt such scheme that we can only fit a spline with odd degree? 2. norder cannot be set to 1. Is there any specific reason
2010 Sep 01
1
Installing a Tcl/Tk Extension on OSX
Dear R-Community, I need the Img tk extension for my R package. It all works on my Ubuntu machine (libtk-img). However I experience a great deal of trouble when I try to install the package on OSX 10.5 or 10.6 (in fact I'm not able to do it). As I understand it, the ActiveTcl with it's teacup package manager do not have an effect on the the x11 tcl installation which R accesses. MacPorts
2010 Aug 30
1
Including C Code for Tcl and Tk in an R package
Dear R Community, I adapted the C-Code found at (http://wiki.tcl.tk/25685) implementing fast image resizing for Tk images for my R package. The C Code differs for tcl/tk version 8.4 and 8.5. I have the working code for both versions. How do I integrate this C-Code into my package so that R CMD INSTALL takes care of compiling the function correct for each OS and tcl version? (such that I can
2007 May 08
1
Piecewise cubic Hermite interpolation
Which function implements the piecewise cubic Hermite interpolation? I am looking for equivalent of matlab's interp1 with the method = 'pchip' Here is the reference http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/interp1.html& -- View this message in context:
2012 Jun 05
1
Piecewise Lasso Regression
Hi All, I am trying to fit a piecewise lasso regression, but package Segmented does not work with Lars objects. Does any know of any package or implementation of piecewise lasso regression? Thanks, Lucas
2017 Jun 23
1
Piecewise continuous logistic regression with one knot
How can I fit a piecewise continuous logistic regression with a single free knot (i.e. the knot is not specified; the model produce an estimate of the value of the knot). Thank you, John John David Sorkin M.D., Ph.D. Professor of Medicine Chief, Biostatistics and Informatics University of Maryland School of Medicine Division of Gerontology and Geriatric Medicine Baltimore VA Medical Center
2012 Apr 05
1
how to do piecewise linear regression in R?
Dear all, I want to do piecewise CAPM linear regression in R: RRiskArb−Rf = (1−δ)[αMktLow+βMktLow(RMkt−Rf)] + δ[αMkt High +βMkt High(RMkt −Rf )] where δ is a dummy variable if the excess return on the value-weighted CRSP index is above a threshold level and zero otherwise. and at the same time add the restriction: αMkt Low + βMkt Low · Threshold = αMkt High + βMkt High · Threshold to ensure
2010 Jan 07
0
piecewise regression using nlme function
Is a 95% CI on a breakpoint fixed effect legitimate when the nonlinear equation is continuous but not differentiable at the breakpoint? I used the nlme to generate a non-linear mixed-effects piecewise model with initial slope zero prior to an unknown breakpoint. It did give a 95% CI for the breakpoint. Thanks Erik whole model is complex, but here is the simple equation used: