[R] missing values

2007-05-30 Thread Allan Clark
anyone help? thanking you in advance Allan Clark Lecturer in Statistical Sciences Department University of Cape Town 7701 Rondebosch South Africa TEL (Office): +27-21-650-3228 FAX: +27-21-650-4773 http://web.uct.ac.za/depts/stats/aclark.htm

[R] winbugs - R question

2006-10-09 Thread allan clark
hi all i would like to use r and winbugs in order to undertake seemingly unrelated regression. i am using the R2WINBUGS library. i just simulated a simple example (sample size is 25) in order to get the correct code. i suspect that the problem is in my definition of the prior. it wants a

[R] R: r course

2004-10-13 Thread allan clark
hi all i need some advice. i am a university lecturer and will be teaching a R programming course next year. the course will be taught to second year statistics students. the aim is to introduce them to programming. the emphasis will be on solving real life consulting projects by using R. i must

[R] R: string connections

2004-09-29 Thread allan clark
hi all i have a simple question: lets assume that i can enter a variable (a) equal to some value, say 100. obviously a could be any value. i would like to create a plot with a main heading as hi all some writing + a how would own create a string by combining a string with a numeric variable?

[R] gambling problem

2004-06-29 Thread allan clark
Hi all i have an interesting project that i have been working on. i intended to set this as a first year programming problem but then changed my mind since i thought that it might be too difficult for them to program. the problem is as follows: You have been approached by a local

[R] r: arma fitting

2004-04-14 Thread allan clark
hi all i would like to model an AR model of the following form: y(t) = a + p*y(t-5) + e(t) where : y(t) is the value of y at time t a is a constant p is the coefficient of the 5th lagged term {e} is a normal error series Any help will be appreciated Allan

[R] r: plots

2004-02-24 Thread allan clark
hi all i have another probably simple question. I have three variables say x, y and z. x and y are quite large and z is relative small. how can one plot the three variables on the same graph with two separate axis? (one for x and y and the other for z) e.g. x-c(101,110,150,167,120)

[R] R: lags

2004-02-10 Thread allan clark
hi all how does one simulate a random walk process? i.e y(0)=0 y(t)=y(t-1)+ e(t) where e(t) is normal(0,1) say. Regards allan __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] R: plotting multiple functions

2004-02-03 Thread allan clark
Hi all Another simple question. I would like to plot three graphs one the same plot with different colours. Say red, blue and black. Here are the functions. r1-1+5*cos(2*pi*seq(1:100)/20)+rnorm(100) r2-1+7*sin(2*pi*seq(1:100)/20)+rnorm(100)

[R] R: lags and plots

2004-02-03 Thread allan clark
Hi all I want to calculate certain lags of a time series and plot them simultaneously on a graph. can anyone help? __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] r: fortran help

2004-01-09 Thread allan clark
Hi all I would like to know if anybody knows of either a good book or web site that explains one how to use Fortran. I would like to call some of the Fortran subroutines but before I can do that I first want to learn how to code in Fortran. Regards Allan

[R] r: lm question

2004-01-05 Thread allan clark
Hi all this is a silly question since i should know the answer. lm(y~x) perfroms linear regression with the intercept included. How do i estimate the equation without the intercept? cheers __ [EMAIL PROTECTED] mailing list

[R]: Lp norm estimation

2003-12-18 Thread allan clark
Hi all Just wondering whether one can undertake Lp norm estimation (a type of regression analysis) in R? i.e. argmin S ( | y(i) - x(i)b | ^p ) where: * S is the summation over observation i= 1,2,...,n * y is a vector of n observations * x is an n by p matrix of explanatory variables

[R]: global and local variables

2003-12-09 Thread allan clark
Hi all I have a problem pertaining to local and global variables. Say I have a function defined as follows: a-function(x) {yx^2} i.e a(2) [1] 4 function b is now defined to take the value of y and do some manipulation with it. As it stands I dont know how to

[R]: global and local variables

2003-12-09 Thread allan clark
Hi Thanx for those who responded to my problem. In my previous email I tried to ask a general question and probably never explained myself correctly. I wanted to prevent sending this long email. My apologies. This is my actual problem. I have a regression problem. I am

[R]: GLIM PROBLEMS

2003-12-02 Thread allan clark
Hi all I have another GLIM question. I have been using R as well as Genstat (version 6) in order to fit GLIM models to the data (displayed below). The same models are fitted but the answers supplied by the two packages are not the same. Why? Can anyone help? A

[R] GLM FITTED VALUES TABLE

2003-11-28 Thread allan clark
Hi all I have the following generalized linear problem. In a study of allergic responses, patients arriving at a clinic in Groote Schuur hospital were tested for sensitivity to a number of substances. Three of these were moulds: Cladosporium (C), Alternaria (F) and