Displaying 20 results from an estimated 1000 matches similar to: "standard errors for orthogonal linear regression"
2005 Nov 16
1
COM dates (was origin and "origin<-" in chron)
I was just looking for an easy way to convert between COM datetime and
chron datetime (both ways.)
I found examples on the list, but they involved origin.
Does anyone have functions for converting COM datetime <-> chron
datetimethat work "safely"?
David L. Reiner
> -----Original Message-----
> From: Gabor Grothendieck [mailto:ggrothendieck@gmail.com]
>
2004 Sep 13
2
Can I find the datetime an object was last assigned to/saved?
I'm using v 1.9.1 under Windoz XP.
Can I do the equivalent of "ls -l" on my R objects? R's "ls()" lists
only the names.
Thanks!
David L. Reiner
Rho Trading
440 S. LaSalle St -- Suite 620
Chicago IL 60605
312-362-4963 (voice)
312-362-4941 (fax)
[[alternative HTML version deleted]]
2005 May 06
4
Choices from a matrix
Could someone please suggest a more clever solution to the following problem than my loop below?
Given X a 2xN matrix X, and I a k-subset of N,
Generate the (2^k)xN matrix Y with columns not in I all zero and the other columns with all choices of an entry from the first or second row of X.
For example, with
X <- matrix(1:8, nrow=2)
I <- c(1,3)
X is
1 3 5 7
2 4 6 8
and Y should be
1 0 5
2004 Nov 08
1
can one evaluate an expression in a comment? (or insert results into history?)
I'd like to insert (for example) the current datetime into a comment so
it goes into the history.
I can of course cut and paste the results of date() into a comment line,
but it would be easier and more powerful to be able to type something
like
> hstamp()
and have it go into the history.
More generally, I would like to put any expression to be evaluated into
this function.
For
2005 Apr 21
1
R 2.1.0 for Windows installation error? atanh not in R.dll?
Could someone please tell me what I did wrong to create this message or what I should do to correct this problem?
I downloaded 2.1.0 Windows binary and installed into C:/R/rw2010, using the installer. I ran md5check.exe in C:/R/rw2010/bin/ and got "No errors."
The problem is this:
When I start up Rgui.exe from its shortcut (target= C:\R\rw2010\bin\Rgui.exe --save -sdi, Start in
2004 Sep 29
2
How to print landscape from script in Windows: dev.print(win.print, printer="local printer name", ...) does not accept horizontal=TRUE
This is a windows-specific question.
After generating a plot, I can print from scripts or the command line
with
> dev.print(win.print,printer="local windows printer name")
I would like to print in landscape mode. From the menus, I can
accomplish this by changing the properties of the printer before
clicking "print".
However, I tried adding
2005 Jul 06
1
pretty for date-time?
pretty() works well for numbers and axTicks() can help for potting log axes,
but has anyone written a pretty for chron objects (or other date or date-time classes)?
It would have natural units of years, months, .., days, hours, (minutes?), and
it would choose the appropriate unit based on the date(time) range.
I have searched the archives and documentation to no avail.
(I wrote one of these back
2005 Nov 15
1
origin and "origin<-" functions on chron
I'm trying to use/modify some code I found (at Omegahat, but I've seem similar usage elsewhere.)
It contains the lines:
if(any(origin(chronDate)!=orig))
origin(chronDate) <- orig
Let's say:
> require("chron")
[1] TRUE
> chronDate <- chron("11/15/2005", format="m/d/y", origin.=c(12,31,1899))
> orig <- c(month=12, day=31,
2005 Apr 21
0
DOH! RE: R 2.1.0 for Windows installation error? atanh not in R.dll?
I'm sorry to waste bandwidth. I re-read the console message for the tenth time and finally noticed R was looking in rw2001pat for libraries. Looking at my Env vars I see I set R_LIBS to look there. Changed R_LIBS, fixed problem.
DOH!
So now if I want to use several versions of R simultaneously, what do I do.
I set R_LIBS so it would look also in C:/R/extra for some added packages.
Thanks and
2004 Nov 08
1
can one evaluate an expression in a comment? (or insert resultsinto history?)
But that doesn't put the result into the history buffer, to be written
to a file only later when I savehistory(filename).
Bert Gunter also suggested ?capture.output and ?textConnection,
but I cannot see how to get text into the history buffer as comments,
but with evaluated expressions (values).
I know how to use paste, sink, write, etc. but nothing that I can see
inserts into the history
2007 Jan 29
2
Need to fit a regression line using orthogonal residuals
I'm trying to fit a simple linear regression of just Y ~ X, but both X
and Y are noisy. Thus instead of fitting a standard linear model
minimizing vertical residuals, I would like to minimize
orthogonal/perpendicular residuals. I have tried searching the
R-packages, but have not found anything that seems suitable. I'm not
sure what these types of residuals are typically called
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
2006 Jul 24
3
unique, but keep LAST occurence
?unique says
Value:
An object of the same type of 'x'. but if an element is equal to
one with a smaller index, it is removed.
However, I need to keep the one with the LARGEST index.
Can someone please show me the light?
I thought about reversing the row order twice, but I couldn't get it to work right
(My data frame has 125000 rows and 7 columns,
and I'm
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).
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.
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
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
2004 Oct 01
3
Can grid lines color in a plot be specified?
R-help
Is there any way to specify the color of grid lines in a simple plot?
par(color.tick.marks=c("grey"))
plot(rnorm(10),tck=1)
Thank you
2006 Jun 15
2
Standard Deviation Distribution
I'm having trouble with the standard deviation distribution
as shown on http://mathworld.wolfram.com/StandardDeviationDistribution.html .
(Eric Weisstein references Kenney and Keeping 1951, which I can't check.)
I believe the graphs they show, but when I code the function in R, according to the listed formula,
I get very different graphs.
Would someone please point out my error or tell
2005 May 25
3
Errors in Variables
I hope somebody can help.
A student of mine is doing a study on Measurement Error models
(errors-in-variables, total least squares, etc.). I have an old
reference to a "multi archive" that contains
leiv3: Programs for best line fitting with errors in both coordinates.
(The date is October 1989, by B.D. Ripley et al.)
I have done a search for something similar in R withour success. Has