Displaying 20 results from an estimated 11000 matches similar to: "problem with log axis"
2003 Apr 24
4
problems with max.col()
Hello, I think the following qualify as a bug
given:
x<-c(1,2,3,4,2,4,2,2,4,2,2,2,4,3,2,1)
z<-embed(x,4)
z
[,1] [,2] [,3] [,4]
[1,] 4 3 2 1
[2,] 2 4 3 2
[3,] 4 2 4 3
[4,] 2 4 2 4
[5,] 2 2 4 2
[6,] 4 2 2 4
[7,] 2 4 2 2
[8,] 2 2 4 2
[9,] 2 2 2 4
[10,] 4 2 2 2
2003 Apr 24
4
problems with max.col()
Hello, I think the following qualify as a bug
given:
x<-c(1,2,3,4,2,4,2,2,4,2,2,2,4,3,2,1)
z<-embed(x,4)
z
[,1] [,2] [,3] [,4]
[1,] 4 3 2 1
[2,] 2 4 3 2
[3,] 4 2 4 3
[4,] 2 4 2 4
[5,] 2 2 4 2
[6,] 4 2 2 4
[7,] 2 4 2 2
[8,] 2 2 4 2
[9,] 2 2 2 4
[10,] 4 2 2 2
2010 Mar 12
2
unknown compression
Hello, I am trying to modify some functions in an existing package. I can get a function by just typing the name in the console, but how can I get all the functions in a package? the ./R/ subdirectory has files xx.rdb and xx.rdx which I can not decompress with 7-zip or with unzip, unrar etc. The help files are compressed with gzip in the ./man/ folder and can be unzipped easily.
Thanks for your
2012 Jul 31
2
help with a regression
Hello, I have a data frame with the following variables:
ID, X1,X2,X3,X4,X5,Y1,Y2,Y3,Y4,Y5 and some other that do not matter, some of the X and Y can be missing (NA). I want to compute the slope of the linear regression Y ~ X for each subject, so using
apply(DF,1,FUN,ra.rm=TRUE) now How do I define FUN? The X are different for each subject.
Thanks for any help
R.Heberto Ghezzo Ph.D.
Montreal -
2001 Dec 12
1
again evaluations
Hello, I wrote the following function to compute multiple comparisons in
a one way anova and randomized blocks anova.
aov1 <- function(y,g,s=NULL,comp="mca",meth="Sidak") {
#
fun <- function(x)
c(mean(x,na.rm=T),sd(x,na.rm=T),length(x[!is.na(x)]))
#
li <- length(unique(g))
cat(" Analysis of Variance with Multiple comparisons\n\n")
cat("
2012 Aug 01
3
help with a regression problem
Hello,
I have a big data frame where consecutive time dates and corresponding observed values for each subject (ID) are on a line. I want to compute the linear slope for each subject. I would like to use apply but I do
not know how to express the corresponding function. An example using a loop follows
#
# create dummy data set There are missing values
a <- c(1,2,3,4, 1,1,1,1, 2,2,3,3,
2003 Jan 29
3
na.rm in sd()
Hello, I think this qualify as a bug
> x<-c(1,2,3,4,NA,6,7)
> mean(x)
[1] NA
> mean(x,na.rm=T)
[1] 3.833333
> sd(x)
Error in var(as.vector(x)) : missing observations in cov/cor
> sd(x,na.rm=T)
Error in sd(x, na.rm = T) : unused argument(s) (na.rm ...)
> var(x)
Error in var(x) : missing observations in cov/cor
> var(x,na.rm=T)
[1] 5.366667
>
why sd() does not
2010 Nov 20
10
An empty grey diagram
Hi folks,
Win7 64bit
R 1.12.0
I run following command on R:-
> ToothGrowth
> attach(ToothGrowth)
> plot(dose,len)
> matrics=lm(len~dose)
> abline(metrics)
Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) :
plot.new has not been called yet
Only a grey diagram is displayed without content
> plot(abline(metrics))
Error in int_abline(a = a, b = b, h = h, v
2009 May 27
3
R in Ubunto
Hello , I do not know anything abount Ubunto, but I found a Portable Ubunto for Windows and since so many people
prefer Linux to Windows I decided to give it a try.
It runs very nicely, so I tried to load R, following Instructions in CRAN I added the line
deb http://probability.ca/cran/bin/linux/ubuntu hardy/ to /etc/apt/sources.list and then from a console
I did
sudo apt-get update
sudo apt-get
2004 Feb 09
10
PhD student reading list, suggestions wanted
I've got a PhD student starting this year.
She'll be working on data mining.
She has asked for a reading list while she's still in her home
country, which is a really good sign.
Her cosupervisor and I don't (think we) have any problem with
choosing things that are specifically about data mining, but
there are some statistical ideas (sampling, exploratory-vs-confirmatory,
2011 Mar 01
2
problems with playwith
hello, i tried to run playwith but :
> library(playwith)
Loading required package: lattice
Loading required package: cairoDevice
Loading required package: gWidgetsRGtk2
Loading required package: gWidgets
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'H:/R/cran/RGtk2/libs/i386/RGtk2.dll':
LoadLibrary failure: The specified procedure could
2000 Sep 13
2
minimization
Hi, I got a code from S that uses 'nlminb' to minimize a function
with constraints. Is there a similar function in R?
Thanks.
R. Heberto Ghezzo Ph.D.
Meakins-Christie Labs
McGill University
Montreal - Canada
heberto at meakins.lan.mcgill.ca
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2005 Jan 17
5
find source code
I am using R 2.0.2 on a WinXP
I am trying to get the code of the Kruskal-Wallis test but
> kruskal.test
function (x, ...)
UseMethod("kruskal.test")
<environment: namespace:stats>
> ls(3)
[1] "acf" "acf2AR" "add.scope"
..............
[181] "kruskal.test" "ks.test"
2011 Apr 20
1
Sweave
Hello,
I never used Sweave before but now I try and got:
>
> rnwfile <- system.file("Sweave", "example-1.Rnw", package = "utils")
> Sweave(rnwfile)
Writing to file example-1.tex
Processing code chunks with options ...
1 : echo term verbatim
2 : term verbatim pdf
You can now run (pdf)latex on 'example-1.tex'
>
2010 Nov 11
2
r-2.12.0 - Hmisc
Hello, I am working on a HP Laptop with R 2.12 just installed, I tried:
R version 2.12.0 (2010-10-15)
Copyright (C) 2010 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i386-pc-mingw32/i386 (32-bit)
...
library(Hmisc)
Loading required package: survival
Loading required package: splines
Error in library.dynam(lib, package, package.lib) :
DLL 'cluster' not found:
2004 Mar 08
5
abline
if I want to specify y-coordinates for the heights of horizontal lines to go across a plot.
x <- c(1,2,3,6,4,8,4,7)
y <- c(3,2,7,4,5,4,5,6)
h <- c(3,5,7)
plot(x,y)
abline(y=h)
However I got error message:
Warning message:
parameter "y" couldn't be set in high-level plot() function
(I tried abline(h=y) , it;s not what I want also)
Do u know why?
2003 Jan 29
2
problems with by()
Hello, another problem.
> x<-rep(1,10)
> y<-rep(c(1,2),c(5,5))
> z<-seq(1:10)
> ab<-data.frame(x,y,z)
#
now I want to do some work by the value of 'y'
> by(ab,y,mean)
y: 1
x y z
1 1 3
------------------------------------------------------------
y: 2
x y z
1 2 8
#
I do not want all the means, only the mean of 'z'
> by(ab,y,function(x)
2001 Mar 14
2
scan
Hello, I have a problem. I have to read a HUGE file which has to be
line processed, so I would like to use scan like
p <- scan(pfile,what=c(0,0,0,"",0,""),nlines=1)
but it continues to read the first line, so I have to add a skip and
increment the skip after each read.
It takes forever to read a test file of 1 Mb, the real one is in 60's Mb
Is there a way to read line
2013 Jul 08
3
A question on the abline function
Dear whom it may concerns,
I am Jia Xu, a summer intern analyst at Citi Research. I am also a graduate student studying Financial Engineering at Cornell. I am running regression analysis with Rstudio now. I have been experiencing difficulty with the abline function. No matter I call it directly in linear regression or call it through residual plots, or plot results from lasso regression, it
2011 Jan 10
2
problem with packages
Hello, I am on a laptop with Win7, running R-2.12.1
if I click on Packages/InstallPackages I get :
> utils:::menuInstallPkgs()
Warning: unable to access index for repository http://cran.skazkaforyou.com/bin/windows/contrib/2.12
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.12
Error in install.packages(NULL, .libPaths()[1L], dependencies