[R] How to extrapolate a model

2011-03-02 Thread sadz a
I am using a multiple additive model (in the quantreg package) and I would like to 'extract' the fitted model formulae ie- for a straight line the formula would be y= 'a+b*c' for my multiple model I would expect somthing more complex because the model is not linear (its a bit like a GAM) but given

[R] Quantreg model error and goodness of fit

2011-03-01 Thread sadz a
Hi All, I am using the package quantreg to create a 'model' that I can then use to predict the response variable (volume) from a larger set of explanatory variables (environmental factors): ie- #model- >fit <- rqss(volume~qss(env.factor1,lambda=1)+ qss(env.factor2,lambda=1), tau = 0.9) >summary(

Re: [R] Changing sign on absolute numbers 0 problems

2010-10-21 Thread Sadz A
mm / 60 + ss / 3600)' to something like > # 'Convert <- function(sign, d, m, s, dd = as.numeric(d), mm = as.numeric(m), >ss = as.numeric(s)) sign * (abs(dd) + mm / 60 + ss / 3600) #(this does not >work >but something similar, or a different approach may?) > > An

[R] Changing sign on absolute numbers 0 problems

2010-10-20 Thread Sadz A
Hi, I am trying to do some calculations turning DMS data to decimal degrees using the formula (D+(M/60)+(S/3600)), some of the D's involve -ve numbers, the easiest way to do the calculation is to use absolute numbers then use the 'sign' function in R to change the answer back to the correct -

[R] Changing latitude data to decimal degrees

2010-08-16 Thread Sadz A
Hi All, I have location data set up as degrees: minutes: seconds (for example, 122:45:45) I need to get this data into decimal degree form (eg, 122.7625). I know that I need to use the formula: Decimal degrees = Degrees + (Minutes/60) + (Seconds/3600) Does anyone know how I can get R to do t

[R] Converting degree: minute: second data to decimal degree data, should be simple

2010-08-16 Thread Sadz A
Hi All, I have location data set up as degrees: minutes: seconds (for example, 122:45:45) I need to get this data into decimal degree form (122.7625). I know that I need to use the formula Decimal degrees = Degrees + (Minutes/60) + (Seconds/3600) Does anyone know how I can get R to do this?