Displaying 20 results from an estimated 177 matches for "1,25".
Did you mean:
1,2
2004 Feb 07
1
Subset function of lm() does not seem to work
...servations. My code is:
----------------------------------------------------------------------
A <- read.table(file="datafile.2",
col.names=c("date","dlinrchf","dlusdchf","dljpychf","dldemchf"))
# The file datafile.2 has 100 observations.
# I want to do a regression using the first 25 only
# Subset vector : the 1st 25 are on, the remaining 75 are off.
window = c(rep(1,25), rep(0,75))
model <- lm(dlinrchf ~ dlusdchf + dljpychf + dldemchf, A, window)
summary(model)
-------------------------------------...
2006 Sep 22
1
legends in a plot
...e the following plot. The circles and the line do not cross in
the main plot. But in the legend, the circle and the line cross. I am
wondering if there is a way to make the legend look like the plot
without crossing. I looked around but did not find a way to do that.
Is it doable?
plot(x,x^1.5, pch=1, lty=1, type='b')
legend(1,25, legend="hello",pch=1, lty=1)
Thanks and have a great weekend!
2012 Dec 06
3
Colors according to value (Excel-Export)
Hello together,
i have a list of numbers, like this one
A B C
1.1 1.2 1.3
i export this list into an excel file and want now color these numbers
according to her value.
I want every color under 1,25 is red, and every color over 1,25 is green.
How can i do this with "RDCOMClient" ?
I know how to colour a complete row, like this task:
U3R <- sh$...
2005 Nov 29
2
permutation test for linear models with continuous covariates
Hi I was wondering if there is a permutation test available in R for linear
models with continuous dependent covariates. I want to do a test like the
one shown here.
bmi<-rnorm(100,25)
x<-c(rep(0,75),rep(1,25))
y<-rnorm(100)+bmi^(1/2)+rnorm(100,2)*x+bmi*x
H0<-lm(y~1+x+bmi)
H1<-lm(y~1+x+bmi+x*bmi)
anova(H0,H1)
summary(lm(y~1+x+bmi))
But I want to use permutation testing to avoid an inflated p-value due to a
y that is not totally normal distributed and I do no...
2013 Nov 18
4
[LLVMdev] Some questions for an LLD Buildbot Slave
I'm in the process of configuring a Mac Mini G4 (PowerPC, big-endian) to be
an LLD buildbot slave, as there were some who wanted a big-endian tester of
LLD.
I have a few quick questions with respect to that:
1. LLD appears to be built using Clang, but Clang is not built as part of
the LLD build. So which version of Clang should I use? v3.3 or any
nightly build of Clang. Is it enough that I occasionally build a Clang,
install it, and use that?
2. I'm not sure how to test LLD properly. Is the test...
2011 Aug 11
1
[PATCH] hivex: A few tweaks to enable building in a separate directory
---
configure.ac | 2 +-
images/Makefile.am | 5 +++--
lib/Makefile.am | 14 +++++++-------
ocaml/Makefile.am | 3 ++-
ocaml/t/hivex_300_fold.ml | 3 +--
python/run-python-tests | 25 -------------------------
python/run-python-tests.in | 25 +++++++++++++++++++++++++
7 files changed, 39 insertions(+), 38 deletions(-)
delete mode 100755 python/run-...
2008 Jan 31
2
permutates and/or samples a matrix
Hi,
sample(x) only permutates and/or samples from a vector, which I can't use
for a matrix. Please help.
Thanks
Stanley
[[alternative HTML version deleted]]
2011 Oct 22
1
setMethod "[" - extract by names within Slot
...t;- function(ID.r, ID.c, DAT) {
out <- new("myClass", ID.r = ID.r, ID.c = ID.c, DAT = DAT)
return(out)
}
setMethod("[", "myClass", function(x, i, j, drop) {
x@ID.r <- x@ID.r[i]
x@ID.c <- x@ID.c[j]
out.0 <- x@DAT[i,j]
out.1 <- to.myClass(x@ID.r, x@ID.c, as.matrix(out.0))
return(out.1)
})
a <- to.myClass(seq(1,25), c("A","A","B","B"), matrix(rnorm(100), nrow = 25))
a
a[1:20, ] #works
a[, 1:3] #works
a[1:10, 1:3] #works
a[, "A"] #not works
What is soluti...
2005 Jun 07
1
factor2real strange!?
Hi,
i get factors from oracle instead real or numeric, but have problems
to convert. Where is my mistake? I can't rember have
this difficulties like this?
many thanks,
christian
> vsub <- subset(dm,select=c(DEBITS_POST3))
> (vsub$DEBITS_POST3[1:4])
[1] 9,93 0 23,82 32,72
7936 Levels: 0 0,53 0,65 0,73 0,76 1,02 1,03 1,16 1,25 1,28 1,31 1,38
1,45 1,47 1,49 1,52 1,53 1,62 1,68 1,69 1,71 1,72 1,9 10,03 ... 99,98
> vsub$DEBITS_POST3 <-
as.numeric(levels(vsub$DEBITS_POST3))[as.integer(vsub$DEBITS_POST3)]
Warning message:
NAs in...
2008 Aug 15
1
Strange error message from geoR´s likfit () lik. max. func.
...39;t tried in Linux
systems) and the problem occurs in both systems.
Below I show the issue with simulated data.
Is it a geoR bug?
Does anybody know a solution?
Thanks in advance
Ruben
x <- rnorm(50,5,2) # eastings
y <- rnorm(50,25,3) # northings
z <- rnorm(50,350,35) # data
v <- c(rep(1,25),rep(2,25)) # two different areas
w <- data.frame(cbind(x,y,z,v)) # put all together
w1 <- subset(w,v == 1) # use data fron one area
w1.geo <- as.geodata(w1,coords.col=1:2,data.col=3) # create geodata object
summary(w1.geo) # everything looks normal
#Number of data points: 25
#
#Coordin...
2013 Nov 18
0
[LLVMdev] Some questions for an LLD Buildbot Slave
On 11/18/2013 11:57 AM, Mikael Lyngvig wrote:
> I'm in the process of configuring a Mac Mini G4 (PowerPC, big-endian) to be
> an LLD buildbot slave, as there were some who wanted a big-endian tester of
> LLD.
>
> I have a few quick questions with respect to that:
>
> 1. LLD appe...
2004 Feb 04
1
Fitting nonlinear (quantile) models to linear data.
...the asymptote as a
metric of how linear versus asymptotic the data were).
Many thanks, in advance.
roly russell - oregon state university
PS - I have not consulted Bates & Watts yet; I will.
# build artificial data with multiplicative error
Dat <- NULL; Dat$x <- rep(seq(1,25,by=3), 5)
set.seed(1)
Dat$y <- SSmicmen(Dat$x, 50, 12)*rnorm(45, 1, 0.1)
plot(Dat)
# fit a classical least-square regression
Dat.nls <- nls(y ~ SSmicmen(x, Vmax, Km), data=Dat); Dat.nls
lines(1:25, predict(Dat.nls, newdata=list(x=1:25)), col=1)
# the 1st...
2003 Nov 24
1
[PATCH] library functions
Hi,
Here are some new library functions for klibc. Some of them are
required for udev, which currently has a klibc_fixups.c file that
implements these functions.
mh
--
Martin Hicks Wild Open Source Inc.
mort@wildopensource.com 613-266-2296
# This is a BitKeeper generated patch for the following project:
# Project Name: The kernel C library
# This patch format is intended for GNU patch command version 2.5 or
higher.
# This patch includes the following deltas:
# ChangeSet 1.247 -> 1.248
# klibc/Makef...
2016 Nov 30
3
[PATCH v3 1/3] nvbios/power_budget: Add basic power budget parsing
On 12/01/2016 05:48 AM, Karol Herbst wrote:
> v2: Set entry to 0xff if not found
> Add cap entry for ver 0x30 tables
> Rework to fix memory leak
> v3: More error checks
> Simplify check for invalid entries
>
> Signed-off-by: Karol Herbst <karolherbst at gmail.com>...
2007 Nov 28
0
7 commits - configure.ac libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/trace
configure.ac | 7 ++-
libswfdec/swfdec_movie.c | 57 ++++++++++-----------------
libswfdec/swfdec_movie.h | 3 -
libswfdec/swfdec_sprite_movie.c | 4 -
test/trace/Makefile.am | 18 ++++++++
test/trace/remove-child-onUnload-5.swf |binary
test/trace/remove-child-onUnload-5.swf.trace | 4 +
test/trace/remove-child-onUnload-6.swf |binary
test/trace/remove-child-onUnload-6.swf.trace | 6 ++
test/trace/remove-child-onUnload-7.swf |binary
test/trace/remo...
2011 Aug 03
0
Rattle loading String to Vector file from WEKA
...to try
out R.
The problem is I cannot load the String to Vector ARFF files created by
WEKA's string parser into Rattle .
Looking at the logs I get something like:
/Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,
:
scan() expected 'a real', got '2281}'/
*My ARFF data file looks a bit like this:*
/@relation 'reviewData'
@attribute polarity {0,2}
.....
@attribute $$ numeric
@attribute we numeric
@attribute wer numeric
@attribute win numeric
@attribute work numeric
@data
{0 2,63 1,71 1,100 1,112 1,140 1,186 1,228 1}
{14 1,40 1,48...
2012 Jul 26
0
lda, collinear variables and CV
...t it produces different
results whether I choose CV=TRUE or I run a manual LOO cross-validation.
Constructing an example, I realised that I'm puzzled about
CV=TRUE not only in the collinear case. The example is below. Actually it
also produces different (though rather similar) results for p=10 (no
longer collinear).
See here:
library(MASS)
set.seed(12345)
n <- 50
p <- 200 # or p<- 10
testdata <- matrix(ncol=p,nrow=n)
for (i in 1:p)
testdata[,i] <- rnorm(n)
class <- as.factor(c(rep(1,25),rep(2,25)))
lda1 <- lda(x=testdata,grouping=class,CV=TRUE)
table1 <- t...
2012 Aug 14
0
Problems with lda-CV, and collinear variables in lda
Dear R-help list,
two issues regarding lda.
1) I'm puzzled by the fact that lda's in-build cross-validation gives results different from the manual cross-validation routine that I run (of course mine may be wrong, but I don't think so).
See here:
library(MASS)
set.seed(12345)
n <- 50
p <- 10 # or p<- 200
testdata <- ma...
2014 Mar 11
0
[PATCH] add mips64 support
On 03/10/2014 11:21 PM, YunQiang Su wrote:
> From: Dejan Latinovic <Dejan.Latinovic at imgtec.com>
Description goes here? I think it would be helpful to break this up
into a few patches with descriptions.
> + unsigned long __f20;
> + unsigned long __f21;
> + unsigned long __f22;
> +...
2016 Nov 30
1
[PATCH v3 1/3] nvbios/power_budget: Add basic power budget parsing
On 12/01/2016 08:56 AM, Karol Herbst wrote:
> 2016-11-30 23:48 GMT+01:00 Ben Skeggs <skeggsb at gmail.com>:
>> On 12/01/2016 05:48 AM, Karol Herbst wrote:
>>> v2: Set entry to 0xff if not found
>>> Add cap entry for ver 0x30 tables
>>> Rework to fix memo...