lspline | R package : Linear Splines with Convenient Parametrisations
kandi X-RAY | lspline Summary
kandi X-RAY | lspline Summary
lspline: Linear Splines with Convenient Parametrisations. Inspired by Stata command mkspline and function ares::lspline from Junger & Ponce de Leon (2011). As such, the implementation follows Greene (2003), chapter 7.5.2.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of lspline
lspline Key Features
lspline Examples and Code Snippets
Community Discussions
Trending Discussions on lspline
QUESTION
I'm trying to calculate y values based on x values and a series of curves defined by a set of vertices. I'm pretty new to R, and couldn't find a direct way to do this. I've found a couple of methods, but I am looking for a better method to generate a formula I can then apply to a series of data frames, to use in further transformations. The curves and vertices are literature values, and I need to use them as they are (linear line segments going through each vertex), rather than interpreting a model based on the points and then adding predictions.
...ANSWER
Answered 2018-Aug-30 at 11:06You can use approx
function to linearly interpolate the data between your data points please see as below for 1000 interpolated points:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install lspline
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page