Displaying 20 results from an estimated 6000 matches similar to: "Help on smooth.spline?"
2003 Apr 10
6
How to plot several graphs in a single 2-D figure?
Hi, R-listers
I tried to plot several graphs in a sigle x-y coordinate settings, like the
following:
|(y) s
| ****** s
| ***** s
| sssssssssssssssssss
|_______________________________(x)
where "*" and "s" denote two diffrent plots.
However, when I used
plot(data1); % data1 is the data points of "*"
2003 Mar 05
8
How to draw several plots in one figure?
Hey,
I want to draw several plots sequently, but have to make them dispaly in one
figure.
So how to achieve this?
Thanks.
Fred
2003 Feb 06
6
Confused by SVD and Eigenvector Decomposition in PCA
Hey, All
In principal component analysis (PCA), we want to know how many percentage
the first principal component explain the total variances among the data.
Assume the data matrix X is zero-meaned, and
I used the following procedures:
C = covriance(X) %% calculate the covariance matrix;
[EVector,EValues]=eig(C) %%
L = diag(EValues) %%L is a column vector with eigenvalues as the elements
percent
2003 May 17
2
Regression tree
Hi everybody.
I'm a new R user and i've been searching a tool for construction of
regression tree...
I found function "tree()" written by a certain Mr. Ripley, and seems to be
just
what i'm looking for, but when i try to use it in R replies me:"Object not
found".
So I was wandering if I should include one special library or something
like that?
Thanks a lot,
ana
2003 Mar 26
2
Plotting K-M Curve when have several strata
Hi,
If I have:
foo <- survfit(y ~ x)
where y is a survival object and x is a n-level factor. The documentation
says when I plot(foo), the confidence intervals will not be plotted (which
I guess is understandable as otherwise the plot will get really messy).
I tried to plot with confidence intervals by using:
plot(foo, conf.int = TRUE)
and indeed the resulting plot is messy. However
2003 Nov 26
4
strptime Usage
Hi,
I have a column in a dataframe in the form of:
> as.vector(SLDATX[1:20])
[1] "1/6/1986" "1/17/1986" "2/2/1986" "2/4/1986" "2/4/1986"
[6] "2/21/1986" "3/6/1986" "3/25/1986" "4/6/1986" "4/10/1986"
[11] "4/23/1986" "4/30/1986" "5/8/1986"
2003 Nov 20
3
read.table(..)..Help?
Hallo,
can someone please help me.
I have a proplem reading a file with more that one
rows.
e.g I used the function:
p<-read.table(file="FILENAME ", header=TRUE,sep=";")
and later used the data.Frame() function.
It functions when the file has only a row of
variables.
When I insert the second row I get an error message.
How do I do this
=====
=====================
Sylvie
2003 Apr 08
2
tree plot
Hello helpers
I have this problem. When I plot a regression tree, some words
are cutted in the figure. There is an attached file tree.ps to
see what I'm saying. In the right figure some labels are
cutted. How can I solve this problem?
--
http://adsl.sapo.pt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree.ps
Type: application/postscript
Size: 4743
2003 Feb 06
1
Réf. : About STEM Plot in R
hello,
you can use the persp() function. The shade=0.7 option is very nice. With
matlab, it is possible to change of colors automaticalli with the value to
be plotted.
Does someone know to do that ?
Gr?gory
f0z6305 at labs.tamu.edu@stat.math.ethz.ch on 06/02/2003 07:05:04
Envoy? par : r-help-admin at stat.math.ethz.ch
Pour : r-help at stat.math.ethz.ch
cc :
Objet : [R] About
2003 Mar 26
2
ifelse()
Hi,
I'm not sure if this can be done but..
I know that with ifelse() I can do something like:
ifelse(x <= 3, 1, 2)
to go through each element in my vector x, and if x_i <= 3 substitute the
number with 1 else with 2. Essentially I'll get a vector with 2 levels.
Can I tweak it so I can get 3-levels? For example:
if(x <= 3) then 1
elseif(3 < x <= 4) then 2
2003 Aug 14
2
How to get the pseudo left inverse of a singular square matrix?
Dear R-listers,
I have a dxr matrix Z, where d > r.
And the product Z*Z' is a singular square matrix.
The problem is how to get the left inverse U of this
singular matrix Z*Z', such that
U*(Z*Z') = I?
Is there any to figure it out using matrix decomposition method?
Thanks a lot for your help.
Fred
2003 Jun 08
6
Basic question on applying a function to each row of a dataframe
Hi,
I have a function foo(x,y) and a dataframe, DF, comprised of two vectors, x
& w, as follows :
x w
1 1 1
2 2 1
3 3 1
4 4 1
etc
I would like to apply the function foo to each 'pair' within DF e.g
foo(1,1), foo(2,1), foo(3,1) etc
I have tried
>apply(DF,foo)
>apply(DF[,],foo)
>apply(DF[DF$x,DF$w],foo)
However, none of the above worked. Can anyone help ?
2003 May 25
1
Example Data Set(s) for nnet, rpart
Hi,
I'm doing a presentation on Neural Networks and Tree-Based Models in two
weeks, at the moment I'm looking for a data set to use in the
presentation. What I would like to use is a good old data, like the Iris
data, that is already known by every statisticians.
MASS4 uses the cpus data in Chapter 8.10 and the Cushing's syndrome in
Chapter 12.4. These two data sets plus the
2003 Nov 13
3
Program Saving
Hi,
I have a very simple question. If a want to save a whole program (say more than 5 command lines), how can I proceed without each time using the command history (that allow me to recall previously saved command, but which is to long if you want to recall more than 5 command lines), or without saving to a text file and use copy/paste when I open a new R session (but in fact this doesn't
2003 Nov 17
3
S Programming
Dear all,
I am thinking of writing my own functions in s-plus (or in R). I just
know how to work with S-plus / R built-in functions. Therefore, I'm a
beginner in S programming.
I am looking for some on-line documentation that is well written about
"Programming in S language" where control stuctures / loops / vectorization
and necessery sequences of S programming are
2002 Oct 29
1
Numerical Integration
Hey, all
Now I am using EM algorithm to do some
optimization. Within that E-step, I have to
calculate some multivariate integration
given some parameter values Theta and function form
of a probability density function f.
So I want to know if there are some package
in R to do such numerical integration given such
function form and parameter values?
Thanks for your kind support on this.
Have a
2003 May 19
2
To update() or not to update()?
Hi,
Suppose I have:
# Fit a base model
d1.ph <- coxph(Surv(start, stop, event)~
ejec + diavol + score + smoking +
beta + surg.done,
data = data.frame(foo))
summary(update(d1.ph, . ~ . + td1))
summary(update(d1.ph, . ~ . + td2))
As I have many columns in my data frame, foo, called td's. e.g. td1, td2,
td3, .... And I'd like to
2003 Aug 07
5
gregmisc
Hi
How do I install "gregmisc" packages?
I did-
% sudo R
> install.packages("gregmisc")
.
.
> barplot2()
but,
Error: couldn't find function "barplot2"
--
atuya
Mac OSX 10.2.6
R 1.7.1
2003 Oct 22
1
questions about axis
Dear helper.
I am a beginer.
I have difficulties to handle axis. I want to draw axis label such that axis has range of [-0.4,0.4] with intervel 0.2 for x and y axis.
Some part of range do not have data points. Thus, plot does not show whole range. How can I enforce plot to depict the whole range regardless of existence of data points ?
Another problem is that when I depict axis labels, some
2003 Mar 21
2
rsync
Hola!
I am now downloading r-devel to compile it on windows XP. The CRAN
source code page says "you will prefere to use rsync". I am googling
around, and cannot find anything about rsync on windows.
Anybody has any experience with rsync on windows?
Kjetil