similar to: how to let R read different equations I write and execute it?

Displaying 20 results from an estimated 10000 matches similar to: "how to let R read different equations I write and execute it?"

2010 Dec 15
5
Solution to differential equation
Hello, I am trying to find the analytical solution to this differential equation dR/dt = k1*(R^k2)*(1-(R/Rmax)); R(0) = Ro k1 and k2 are parameters that need to fitted, while Ro and Rmax are the baseline and max value (which can be fitted or fixed). The response (R) increases initially at an exponential rate governed by the rate constants k1 and k2. Response has a S-shaped curve as a function
2011 Sep 13
1
solving linear equations
I have a dataset X Y1 1200 1.375 4000 0.464 1333.33 0.148 444.44 0.047 148.148 0.014 49.383 0.005 16.461 0.004 I have to find a curve fit for the above dataset based on a 4-parameter logistic equation viz. Y1 = d + ((a-d)/(1+(X/cc)^b)), where X and Y1 are the values above. I need to know how to solve the above equation for values a, b, c, d. -- View this message in context:
2011 Feb 22
1
System of related regression equations
Dear all, I would like to estimate a system of regression equations of the following form: y1 = a1 + b1 x1 + b2x2 + e1 y2 = a2 + c1 y1 + c2 x2 + c3 x3 + e2 Specifically the dependent variable in Equation 1 appears as an independent variable in Equation 2. Additionally some independent variables that appear in Equation 1 are also included in Equation 2. I assume that I cannot estimate these two
2017 Jul 13
0
Question on Simultaneous Equations & Forecasting
Who was speaking about non-linear models in the first place??? The Klein-Model(s) and pretty much all simultaneous equation models encountered in macro-econometrics are linear and/or can contain linear approximations to non-linear relationships, e.g., production functions of the Cobb-Douglas type. Best, Bernhard -----Urspr?ngliche Nachricht----- Von: Berend Hasselman [mailto:bhh at xs4all.nl]
2017 Jul 13
0
Question on Simultaneous Equations & Forecasting
Hi Frances, I have not touched the system.fit package for quite some time, but to solve your problem the following two pointers might be helpful: 1) Recast your model in the revised form, i.e., include your identity directly into your reaction functions, if possible. 2) For solving your model, you can employ the Gau?-Seidel method (see https://en.wikipedia.org/wiki/Gauss%E2%80%93Seidel_method).
2010 Apr 26
1
finite difference scheme for 2D differential equations
Hello everyone, I am trying to solve 2D differential equations using finite difference scheme in R. I have been able to work with the equations with only one spatial dimensions but I want to extend it to the two dimensional problem. For example i can simulate one dimensional diffusion using a code like the following. But I want to write a similar code for,say, a two dimensional diffusion
2017 Jul 13
1
Question on Simultaneous Equations & Forecasting
> On 13 Jul 2017, at 12:55, Pfaff, Bernhard Dr. <Bernhard_Pfaff at fra.invesco.com> wrote: > > Who was speaking about non-linear models in the first place??? > The Klein-Model(s) and pretty much all simultaneous equation models encountered in macro-econometrics are linear That's really not true. Klein model is linear but Oseibonsu did not say that explicitly. "Klein
2008 Aug 25
1
Displaying Equations in Documentation
I'm currently working on writing up some documentation for some of my code, but am having the darndest time coding in equations. For example, the equation in the following: \details{ Calculated the R Squared for observed endogenous variables in a structural equation model, as well as several other useful summary statistics about the error in thoe variables. R Squared values are
2017 Jul 13
2
Question on Simultaneous Equations & Forecasting
Frances, I would not advise Gauss-Seidel for non linear models. Can be quite tricky, slow and diverge. You can write your model as a non linear system of equations and use one of the nonlinear solvers. See the section "Root Finding" in the task view NumericalMathematics suggesting three packages (BB, nleqslv and ktsolve). These package are certainly able to handle medium sized models.
2006 Jun 16
6
rendering mathematical equations
Any recommendations on how I can get mathematical equations into my resulting html? (Besides using x^2^ type markup.) I figure I could parse out equation text from my main text before RedCloth ever sees it... and then maybe create png''s somehow from it, putting the links to them back into the main text before handing it over to RC. But I don''t know of a util that will generate
2012 Jun 19
0
[R-sig-Geo] Help in simultaneous equations
On Tue, Jun 19, 2012 at 1:11 PM, Saima Bashir <saimabashir11 at yahoo.com> wrote: > Hi Sarah, > > I have installed and loaded them into R but get same error. > > I am using four equations, cross-section data, version R i386 2.15.0. That is by no means all the information I requested in my original reply, or all that is requested in the posting guide. Nobody can help you
2017 Jul 12
2
Question on Simultaneous Equations & Forecasting
Hello, I have estimated a simultaneous equation model (similar to Klein's model) in R using the system.fit package. I have an identity equation, along with three other equations. Do you know how to explicitly identify the identity equation in R? I am also trying to forecast the dependent variables in the simultaneous equation model, while incorporating the identity equation in the
2008 Feb 15
1
How to estimate the parameters of differential equations from data
Hello list I have a theoretical differential equation model (two coupled differential equations) describing the acidification of dairy cultures in milk: dX/dt = f(H, param)*X dH/dt = g(param)*dX/dt pH = -log10(H) I also have actual data of the same. I would like to estimate the parameters of the theoretical model from real data, but don't know how to go about it in R (I'm fairly new
2011 Nov 04
2
Equations in Word 2007
Greetings, gentlemen. When I open a doc-file with some formulas (the file was created on windows machine), sometimes they are rendered a bit wrong. After opening them in equation editor they are rendered OK. After saving the doc-file anything is OK. But when the changed file is opened on MS Word 2007 on Windows machine, the formulas which were opened in Equation Editor on wine Word, are rendered
2007 Jul 24
1
Passing equations as arguments
Friends, I'm trying to pass an equation as an argument to a function. The idea is as follows. Let us say i write an independent function Ideal Situation: ifunc <- function(x) { return((x*x)-2) } mainfunc <- function(a,b) { evala <- ifunc(a) evalb <- ifunc(b) if (evala>evalb){return(evala)} else return(evalb) } Now I want to try and write this entire program in a single
2016 Apr 26
0
vectors of equations in ode / desolve
Hello, I have a syntactic problem with ode. How do I specify vectors of equations in ordinary differential equation systems. (i.e. in my case I want to simulate an a priory undefined number of species that have different parameters but the same behaviour) I demonstrate this using the Lotka Volterra example. The code below does not work and I have not a good idea how to specify this right. ##
2011 Jun 23
0
Loops, Paste, Apply? What is the best way to set up a list of many equations?
Is there a way to apply paste to?list(form1 = EQ1, form2 = EQ2, form3 = EQ3, form4 = EQ4)?such that I don't have to write form1=EQ1 for all my models?(I might have a list of 20 or more)? I also need the EQs to read the formulas associated with them. For example, below, I was able to automate the name assignment but I could not figure out how to?to set up the list using?paste or other
2005 Oct 27
1
Fitting of Non-Linear Diff Equations and Parameter Estimation
Hello Everybody, I am running R 2.2.0 with Windows XP i am trying to fit nonlinear differential equation to data sets which looks like this: Week N C 0 1 1 1 5 6 2 6.2 12.2 3 59 71.2 4 39 110.2 5 38 148.2 6 44 192.2 7 20.4 212.6 8 19.4 232 9 34.2 266.2 10 35.4 301.6 and i need to fit these data to the following diff equation: dNdt=a*N-b*N*C, dCdt=N^2, Where a=birth rate, b=death rate and N=
2010 Jan 08
0
solving cubic/quartic equations non-iteratively -- comparisons
Hi, I'm responding to a post about finding roots of a cubic or quartic equation non-iteratively. One obviously could create functions using the explicit algebraic solutions. One post on the subject noted that the square-roots in those solutions also require iteration, and one post claimed iterative solutions are more accurate than the explicit solutions. This post, however, is about
2012 Nov 20
1
Coefficient of determination for non-linear equations system (nlsystemfit)
Hello everyone, I have estimated system of three linear equations with one non-linear restrictions with nlsystemfit. I was wondering how I can calculate the R-squared (or some alternative coefficient of determination) for the whole system. This is automatically given by linear systemfit but not by nlsystemfit. I can get the values for each of the equations separately, but apparently not for