Displaying 20 results from an estimated 300 matches similar to: "help with correct use of function lsfit"
2009 May 04
1
wrong if-else syntax
What is wrong in the following nested if-else statements:
if (Condition_1) { # begin IF_1
statement_1
statement_2
statement_3
if (Condition_2) { # begin IF_2
a<- a +1
} # end IF_2
statement_4
statement_5
statement_6
statement_7
if (Condition_3) {
2009 Oct 25
1
lsfit residuals
I'm trying to extract the points above and below a particular lsfit. I
can only get the residuals from the original fit though.
x = runif(100, 0, 10)
plot(x)
abline(lsfit(1:100, test))
abline(lsfit(1:100, test + sd(test))) #I want the points above THIS
line.
Is there a way to use the coefficients from the fit to do this?
Thanks for any help.
2013 Apr 25
1
lsfit: Error in formatting error message
Hi,
in R-3.0 I get the following error when calling lsfit with more
observations than variables, which seems to come from an error in the
formatting of the error message (note that this was not happening in
2.15.3):
> nobs <- 5; nvar <- 6; lsfit(matrix(runif(nobs*nvar), ncol=nvar),
runif(nobs), intercept=FALSE)
Error in sprintf(ngettext(nry, "%d response", "%d
2009 Mar 13
1
lsfit w/ rank-deficient x
Dear R-devel,
It seems that lsfit incorrectly reports coefficients when the input matrix 'x' is rank-deficient, see the example below:
## here values of 'b' and 'c' are incorrectly swapped
> x <- cbind(a=rnorm(100), b=0, c=rnorm(100)); y <- rnorm(100); lsfit(x, y)$coef
Intercept a b c
-0.0227787 0.1042860 -0.1729261 0.0000000
Warning
2019 May 15
0
Wine release 4.0.1
The Wine maintenance release 4.0.1 is now available.
What's new in this release (see below for details):
- Various bug fixes
- Sinhala and Tamil translation updates
The source is available from the following locations:
https://dl.winehq.org/wine/source/4.0/wine-4.0.1.tar.xz
http://mirrors.ibiblio.org/wine/source/4.0/wine-4.0.1.tar.xz
Binary packages for various distributions will
1999 Oct 21
1
left.solve
I have sort of an emergency question for the list. One of my professors
for an S-Plus intensive class distributed a function to produce partial
regression plots. I need to run it under R, because I'm doing the
homework on my home computer with a modem; hence I don't have the speed
required to emulate X-Windows and run S Plus off one of the campus
servers. Bottom line: I'm using R.
2019 Mar 01
0
Wine release 4.3
The Wine development release 4.3 is now available.
What's new in this release (see below for details):
- Reimplementation of XAudio2 using the FAudio library.
- Mono engine updated to the latest upstream.
- More modern handling of iconic windows.
- Improved handling of kernel objects.
- Various bug fixes.
The source is available from the following locations:
2018 Feb 05
0
Cross-compiling libc++ to linux-armv7hf gives undefined symbols in cmath / math.h
Hello,
I am trying to cross-compile libc++ from my x86_64 linux system to armv7hf.
We have our own gcc compiler that we build with crosstools-ng (based on gcc
6.3.0) and I set my environment like this:
CC=armv7a-plex-linux-gnueabihf-gcc
CXX=armv7a-plex-linux-gnueabihf-g++
CFLAGS=-fPIC -DPIC -mfloat-abi=hard -march=armv7-a -Os -mfpu=vfpv3-d16
--sysroot=<path>
CXXFLAGS=-fPIC -DPIC
2002 Feb 12
0
Plotting with direction of axes reversed.
Over the years there have been inquiries to these lists as to how to
produce plots with the direction(s) of axes reversed. In response to
some of these inquiries, I have provided a function call ``rplot''
which automated the procedure for such axis reversal.
Recently Herberto Ghezzo of McGill University pointed out to me that
there was a bug in my code. I have now fixed this bug (and a
2002 May 14
1
princomp
Hello experts,
as newcomer in pca, i have a question, concerning the princomp algorithm.
With a dataset "r" containing 18 "input" parameters and 1 "output" parameter
r[19], i got with the following fit
ls <- lsfit(r[1:18],r[19]); lsdiag <- ls.diag(ls); lsdiag$std.dev
a prediction error of:
[1] 8.879561
what is quite reasonable. If i take only two
2018 Feb 06
0
libc++ cross-compile linux-armv7 and math function problems
At first glance, it looks like long double functions (such as fabsl and friends) are missing from your sysroot's <math.h>. Does your target support long double at all?
-Dimitry
> On 6 Feb 2018, at 09:51, Tobias Hieta via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hello,
>
> I am trying to cross-compile libc++ from my x86_64 linux system to armv7hf. We have
2003 Jul 21
5
how to test whether two slopes are sign. different?
Not really r-specific:
Z = (b1 - b2) / SQRT ( SEb1^2 + SEb2^2)
-------Original Message-------
From: Gijsbert Stoet <stoet at volition.wustl.edu>
Sent: 07/20/03 09:51 PM
To: r-help at stat.math.ethz.ch
Subject: [R] how to test whether two slopes are sign. different?
>
> Hi,
suppose I do want to test whether the slopes (e.g. determined with
lsfit) of two different population are
2016 Apr 20
0
Solving sparse, singular systems of equations
This is not a solution but your lsfit attempt
#Error in lsfit(A, b) : only 3 cases, but 4 variables
lsfit(A,b)
gave that error because lsfit adds a column of 1 to
its first argument unless you use intercept=FALSE.
Then it will give you an answer (but I think it converts
your sparse matrix into a dense one before doing
any linear algebra).
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On
1997 Apr 30
1
R-beta: ls.print
ls.print produces error that I don't seem to be able to trace.
Output of the commands as follows: (hyeung is a 24x2 matrix of data)
-------------------------------------------------
> summary(hyeung)
x.1 x.2
Min. : 28.0 Min. : 10.0
1st Qu.: 72.0 1st Qu.: 87.5
Median : 86.5 Median : 92.5
Mean : 81.0 Mean : 82.5
3rd Qu.: 97.0 3rd Qu.:100.0
Max.
1997 Apr 30
1
R-beta: ls.print
ls.print produces error that I don't seem to be able to trace.
Output of the commands as follows: (hyeung is a 24x2 matrix of data)
-------------------------------------------------
> summary(hyeung)
x.1 x.2
Min. : 28.0 Min. : 10.0
1st Qu.: 72.0 1st Qu.: 87.5
Median : 86.5 Median : 92.5
Mean : 81.0 Mean : 82.5
3rd Qu.: 97.0 3rd Qu.:100.0
Max.
2018 Feb 06
1
libc++ cross-compile linux-armv7 and math function problems
Hello Dimitry and thanks for your answer.
I am pretty sure it does indeed support long double. It's configured with
vfpv3-d16 - but I noticed that c++config.h in gcc has _GLIBCXX__HAS_FABSL
and friends are undefined. I think I need to look deeper at the
configuration of our toolchain.
long double support is required in libc++ then I gather?
-- Tobias
On Tue, Feb 6, 2018 at 11:47 AM,
2004 Aug 23
0
cannot join domain unless its root user
I'm atttempting to setup samba 3 as a primary domain controller which
authenticates users from a windows 2k/xp prof workstation and maps
their respective home folders as well as their respective shared
folders on the gentoo server. For example, I have the following groups
with their designated shares:
Group Shared Dir
------------ ------------------
water
2004 Mar 18
1
termplot has problems with a single term (fix included) (PR#6679)
On Thu, 18 Mar 2004 k.hansen@biostat.ku.dk wrote:
> The bug exists on R-1.9.0-alpha compiled the 10/3.
>
> Termplot has a problem if either the model only contains a single term
> or if asked to plot a single term. In addition there are problems with
> the option se = TRUE.
I can't reproduce this in either R-devel or 1.8.1, and termplot hasn't
changed since January.
I do
2004 Mar 18
1
termplot has problems with a single term (fix included) (PR#6675)
The bug exists on R-1.9.0-alpha compiled the 10/3.
Termplot has a problem if either the model only contains a single term
or if asked to plot a single term. In addition there are problems with
the option se = TRUE.
Analysis: termplot starts with
terms <- if (is.null(terms))
predict(model, type = "terms", se = se)
else predict(model, type = "terms", se = se,
2016 Apr 20
6
Solving sparse, singular systems of equations
I have a situation in R where I would like to find any x (if one exists) that solves the linear system of equations Ax = b, where A is square, sparse, and singular, and b is a vector. Here is some code that mimics my issue with a relatively simple A and b, along with three other methods of solving this system that I found online, two of which give me an error and one of which succeeds on the