[R] help with a for loop

2008-10-15 Thread Quan Li
Hi all, I am running OLS models with a power parameter: y=a+bx^p, and I want to iterate through p with a set increment. The function I constructed is something like below: test<-function(data, model,...){ f<-formula(model) #model="y~I(x^p)" p<-0.1 n<-10 result<-list() while (p<=1) { for (i in 1

[R] VGAM and persp function

2008-03-13 Thread Quan Li
Hi all, I loaded VGAM, which masks the persp function from graphics. How can I run the persp function after running VGAM? I tried reloading graphics but it did not work. Thank you. quan __ R-help@r-project.org mailing list https://stat.ethz.ch/mailma