Re: [R] locfit

2004-08-01 Thread Yan Yu
y that i forgot to mention that.. > locfit has many options, but all do local smoothing, not interpolation. > > On Sat, 31 Jul 2004, Yan Yu wrote: > > > Hi, I have a Q on locfit, > > E.g., I have an input data set of the form {(x, y, v)} , (x, y) is the > > location

[R] locfit

2004-07-31 Thread Yan Yu
Hi, I have a Q on locfit, E.g., I have an input data set of the form {(x, y, v)} , (x, y) is the location in a 2D space, v is the value at that location. I am wondering for the output of locfit(), if a given point (x, y) is in the input data set, is the value at (x, y) going to be the exactly s

RE: [R] SOS:) help on install package

2004-06-22 Thread Yan Yu
calling > update.packages() with package names. > > install.packages("locfit") is probably what you really want to do. > > Andy > > > From: Yan Yu > > > > HI, > > i tried to install package by using > > update.packages( "locfit"

[R] SOS:) help on install package

2004-06-22 Thread Yan Yu
HI, i tried to install package by using update.packages( "locfit" ) I got the following error: trying URL `http://cran.r-project.org/src/contrib/PACKAGES' Content type `text/plain; charset=iso-8859-1' length 172492 bytes opened URL .. .. .. .. .. ..

[R] generate random number of any given distribution

2004-01-16 Thread Yan Yu
Hello, Is there a function in R to generate random number of any given distribution (its pdf is given), besides uniform and gaussian distribution? Thanks, yan __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE

[R] a quick Q: a function in R, equivalent to "atoi" function in C?

2003-07-30 Thread Yan Yu
Hello, I wonder is there a function in R, which can achieve the functionality of atoi in C, i.e., convert from a character string to a number? I use Sys.getenv(), it returns a character string, e.g., "12", but i need a number, e.g., 12, to fit into a function. thanks a lot, yan __

[R] a Q re. Kriging package

2003-07-12 Thread Yan Yu
Hello, Based on a couple of textbooks on geostatistics I read, Kriging is an exact interpolator, which means it reconstructs sample data values at known locations. I wonder which Kriging package in R is an exact interpolator? does anyone has experience with that? THANKS A LOT in advance, have a

[R] a Q re. read source files in spatial package.

2003-07-06 Thread Yan Yu
Hello, I tried to read the source file related to variograms in the "spatial" package. I copied part of the source file of "spatial" package as follows, in the follwing lines, I want to read "VR_variogram" function, from wrapped in .C(), I suppose it is a C function.. I searched in various sub dir

[R] krige in gstat() package

2003-06-25 Thread Yan Yu
HI, I wonder does anyone have experience with doing sequential gaussian simulation with krige() function in gstat? I find it VERY slow compared to use krige() to achieve kriging function itself.. I wonder why, is that because it has to model the variogram, and do the kriging separately for each

[R] sequential gaussian simulation

2003-06-23 Thread Yan Yu
Hello, I am wondering does anyone have experience with sequential gaussian simulation? what package would you recommend for that purpose? I also have a related Q: In R, is there a function I can use to test that if my data is multi-point, or multi-variant gaussian? Any information and point

[R] wavelet model on time series in R?

2003-03-23 Thread Yan Yu
Hello, Is there package built for R that can do model/prediction on time series data using wavelet? If not, does anyone know what popular software can do that? Thanks much, yan __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/list

[R] arima

2003-03-23 Thread Yan Yu
Hello, I have a couple of Qs about arima() in ts package. 1. I know the basic concept of arima model, but not very sure about the value returned by arima(), such as sigma2. from the help in R, sigma2 is the MLE of the innovations variance.. but i am still not sure what this "innovations varianc

[R] nls() and arima()

2003-01-17 Thread Yan Yu
duals for arima() from the big individual residual array? Is there any easy way to do this? thanks a lot, have a nice weekend, yan On 17 Jan 2003, Douglas Bates wrote: > "kjetil brinchmann halvorsen" <[EMAIL PROTECTED]> writes: > > > On 16 Jan 2003 at 22:15, Yan Yu wro

[R] nls

2003-01-16 Thread Yan Yu
HI, i have some prob when i try to use nls(). my data is 1D vector, I tried to use a polynomial function(order is 3) to fit it. the data series is stored in x. the a0, a1, a2, a3 below is coefficient, which i hope i can get from calls "nls" > z <- nls( ~ a0 + a1 * x + a2 * x * x + a3 * x * x *

[R] kriging in R

2003-01-16 Thread Yan Yu
Hi, all, Have anyone used kringing included in R? How is it? Does it handle anisotropy data well? How does it compare with Kriging in Arc/Info? or other geostatistics software customized to do kriging or other geostatistics functions? I tried Easykriging, a geostatistics tool developed for Mat

Re: [R] check variables: a Q from a beginner

2003-01-16 Thread Yan Yu
str() on all objects listed by ls(). > > > >-roger > >___ > >UCLA Department of Statistics > >[EMAIL PROTECTED] > >http://www.stat.ucla.edu/~rpeng > > > >On Wed, 15 Jan 2003, Yan Yu wrote: > > > > > HI, all,

[R] check variables: a Q from a beginner

2003-01-15 Thread Yan Yu
HI, all, How can i check the variables that is currently being loaded.. ls() only list the variable name, but not the summary of the variable, like the dimension of the variable etc.. Is there a command in R, which is equivalent to "whos" in matlab, which let me check the variables currently loaded

Re: [R] using arima() function

2003-01-09 Thread Yan Yu
Thank you all for the info. It works:) yan On Thu, 9 Jan 2003 [EMAIL PROTECTED] wrote: > library(ts) is needed. > > On Thu, 9 Jan 2003, Yan Yu wrote: > > > HI, there, > > When i use R, i tried to use function arima(), it complains: > > Error: couldn't fin

[R] using arima() function

2003-01-09 Thread Yan Yu
HI, there, When i use R, i tried to use function arima(), it complains: Error: couldn't find function "arima" But when I type "help.search("arima") ", I got arima() poped up.. arima(ts) ARIMA Modelling of Time Series arima.sim(ts) Simulate from an ARIMA Model arima0(