Re: [R] predict function type class vs. prob

2023-09-23 Thread Rolf Turner
On Fri, 22 Sep 2023 10:12:51 + "Milbert, Sabine (LGL)" wrote: > Dear R Help Team, In addition to other misapprehensions that others have pointed out, you seem to have a fundamental misunderstanding of R-help (and perhaps of R). There is no such thing as the "R Help Team". This is a *ma

Re: [R] predict function type class vs. prob

2023-09-23 Thread David Winsemius
That's embarrassing. Apologies for the garbles HTML posting. I'll see if this is more readable: On 9/23/23 05:30, Rui Barradas wrote: Às 11:12 de 22/09/2023, Milbert, Sabine (LGL) escreveu: Dear R Help Team, My research group and I use R scripts for our multivariate data screening routines.

Re: [R] predict function type class vs. prob

2023-09-23 Thread Ivan Krylov
В Fri, 22 Sep 2023 10:12:51 + "Milbert, Sabine (LGL)" пишет: > PS: If this is an issue based on the model training function of the > caret package and therefore not your responsibility, please let us > know. Indeed, as Rui Barradas said, predict() is a generic function. Calling it with your

Re: [R] predict function type class vs. prob

2023-09-23 Thread David Winsemius
On 9/23/23 05:30, Rui Barradas wrote: > Às 11:12 de 22/09/2023, Milbert, Sabine (LGL) escreveu: >> Dear R Help Team, >> >> My research group and I use R scripts for our multivariate data >> screening routines. During routine use, we encountered some >> inconsistencies within the predict() funct

Re: [R] predict function type class vs. prob

2023-09-23 Thread Rui Barradas
Às 11:12 de 22/09/2023, Milbert, Sabine (LGL) escreveu: Dear R Help Team, My research group and I use R scripts for our multivariate data screening routines. During routine use, we encountered some inconsistencies within the predict() function of the R Stats Package. Through internal research,

[R] predict function type class vs. prob

2023-09-22 Thread Milbert, Sabine (LGL)
Dear R Help Team, My research group and I use R scripts for our multivariate data screening routines. During routine use, we encountered some inconsistencies within the predict() function of the R Stats Package. Through internal research, we were unable to find the reason for this and have deci

Re: [R] Predict Function use with GLM

2015-08-12 Thread Ben Bolker
trisgutt hotmail.com> writes: > > I am currently using a GLM with Gaussian family to model fish depth~length + > distance from shore: > > model1 <- glm(Depth ~ length + distance from shore, > family=gaussian(link="log")) > > There are no zero depths. I would like to use the above model with t

[R] Predict Function use with GLM

2015-08-12 Thread trisgutt
I am currently using a GLM with Gaussian family to model fish depth~length + distance from shore: model1 <- glm(Depth ~ length + distance from shore, family=gaussian(link="log")) There are no zero depths. I would like to use the above model with the predict function in R to generate three lines

Re: [R] predict function in regression analysis

2015-05-06 Thread Stéphane Adamowicz
Maybe this is what you wanted : Data <- structure(list(y = c(4.5, 4.5, 4.7, 6.7, 6, 4.4, 4.1, 5.3, 4, 4.2, 4.1, 6.4, 5.5, 3.5, 4.6, 4.1, 4.6, 5, 6.2, 5.9, 3.9, 5.3, 6.9, 5.7), lot = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L), duration = c(0

Re: [R] predict function in regression analysis

2015-05-05 Thread Bert Gunter
I think you want CI's for intercepts, not "means" (what is a "mean" for a line??). If so, the ?confint function will give this to you for the lot effect estimates when applied to a model fitted without an intercept: myfit <-lm(y~ lot-1+time) confint(myfit) Further discussion should be directed

[R] predict function in regression analysis

2015-05-05 Thread li li
Hi all, I have the following data in which there is one factor lot with six levels and one continuous convariate time. I want to fit an Ancova model with common slope and different intercept. So the six lots will have seperate paralell regression lines.I wanted to find the upper 95% confidence li

Re: [R] Predict function in Raster package

2012-11-28 Thread megmurr
I recieved this response from the package authors: This warning comes from the dismo package (predict with Mahanalobis object). You can ignore it. It will go away with the next version of dismo (you can get it from R-Forge). So the problem is in dismo which has not been updated since raster has

Re: [R] Predict function in Raster package

2012-11-28 Thread megmurr
Thank you. Yes I have raised this question with the authors. -- View this message in context: http://r.789695.n4.nabble.com/Predict-function-in-Raster-package-tp4651027p4651143.html Sent from the R help mailing list archive at Nabble.com. __ R-help@

Re: [R] Predict function in Raster package

2012-11-28 Thread floedan...@gmail.com
Hi, I am having the same problem. I am running MaxEnt and using the Raster package. But when i try to extract the BIL-file from one RasterLayer: str(pred@file@bandorder), and stack() this BIL-file with other environmental variables but get the same error.. “In layerNames(x): the layerNames func

Re: [R] Predict function in Raster package

2012-11-27 Thread David Winsemius
On Nov 27, 2012, at 2:33 PM, megmurr wrote: Hey, I am having troubles using the 'predict' function with in the Raster package. I am using pm<-predict(mm, predictors) where mm is the mahalanobis distance and the predictors are a stack of 6 raster layers containing environmental variables. Whe

Re: [R] Predict function in Raster package

2012-11-27 Thread David Winsemius
On Nov 27, 2012, at 2:33 PM, megmurr wrote: Hey, I am having troubles using the 'predict' function with in the Raster package. I am using pm<-predict(mm, predictors) where mm is the mahalanobis distance and the predictors are a stack of 6 raster layers containing environmental variables. Whe

[R] Predict function in Raster package

2012-11-27 Thread megmurr
Hey, I am having troubles using the 'predict' function with in the Raster package. I am using pm<-predict(mm, predictors) where mm is the mahalanobis distance and the predictors are a stack of 6 raster layers containing environmental variables. When I try to run the prediction I get the followin

Re: [R] Using the R predict function to forecast a model fit with auto.arima function

2012-04-27 Thread R. Michael Weylandt
> > Can anybody help me or tell me how could I do to be able to generate the > predictions? > > Best regards, > > Paul > > -- > View this message in context: > http://r.789695.n4.nabble.com/Using-the-R-predict-function-to-forecast-a-model-fit-with-auto-arima-function-tp4

[R] Using the R predict function to forecast a model fit with auto.arima function

2012-04-26 Thread PaulJr
ies, I really do not understand the reason for that error message. Can anybody help me or tell me how could I do to be able to generate the predictions? Best regards, Paul -- View this message in context: http://r.789695.n4.nabble.com/Using-the-R-predict-function-to-forecast-a-model-fit-with-au

[R] Predict function

2012-02-02 Thread Davg
I've created a linear model and am trying to use the predict function to predict the outcome of a sports game. I have four explanatory variables a,b,c,d. where a,b relate to the home team and c,d relate to the away team. i'd like to know the probability that the home team wins (assuming no draw

Re: [R] predict() function on a list made up of a system of equations

2011-08-14 Thread Joshua Wiley
On Sun, Aug 14, 2011 at 7:55 PM, Darius H wrote: > > > > > > > > > The above whitespace comes about from posting to this list (which converts emails to plaintext) in HTML. Please set future emails to plain text (its under text formatting or something like that in hotmail). > Hi everyone, > > Do

[R] predict() function on a list made up of a system of equations

2011-08-14 Thread Darius H
Hi everyone, Does anyone know how I can use the predict() function or anything similar in a various packages to forecast future values of a system of equations in a list? I keep getting an error message when I try to use the predict function and I cannot find anything on the help arc

[R] predict function for kmeans

2010-12-21 Thread Raji
Hi, I am using kmeans algorithm to cluster my training dataset.After the model is generated, i need to apply it to my production dataset and see the clusters it falls into.But, i am unable to find a predict function for kmeans to do this. Could you please let me know if there is a predict func

[R] Predict function in ARIMA/GARCH- Real time forecastinng

2010-03-30 Thread RAGHAVENDRA PRASAD
Hi, I m working on time series forecasting.I was checking ARIMA and GARCH model for forecasting.Is there any possibility that we can include test data as input for predict function.I am working on real time forecasting where i would be getting real time feeds using which i need forecas

Re: [R] predict function the other way around

2009-05-11 Thread David Winsemius
Why not use the x=T and y=T paramemters and see if : linearmodel=lm(y~x, x=T, y=T)linearmodel$model (linearmodel$model) y x 1 2 1 2 4 2 3 6 3 4 8 4 5 10 5 give you useful results. If you want to interpolate or extrapolate, then search for threads regarding those tasks. -- David W

[R] predict function the other way around

2009-05-11 Thread Gerrit Voigt
Dear List, Consider the following example x=c(1,2,3,4,5) y=c(2,4,6,8,10) linearmodel=lm(y~x) To predict a y-value if you know the corresponding x value is very easy with the command predict. predict(linearmodel, newdata=(x=1.5)) The other way around, to predict an x-value with a correspondin

Re: [R] predict function problem for glmmPQL

2009-01-22 Thread Kingsford Jones
On Thu, Jan 22, 2009 at 10:48 PM, Chun Zhang wrote: > Hi all, > I am using cross-validation to validate a generalized linear mixed effects > model fitted using glmmPQL. i found that the predict function has a problem > and i wonder if anyone has encountered the same problem? > > glmm1 = glmmPQL(

[R] predict function problem for glmmPQL

2009-01-22 Thread Chun Zhang
Hi all, I am using cross-validation to validate a generalized linear mixed effects model fitted using glmmPQL. i found that the predict function has a problem and i wonder if anyone has encountered the same problem? glmm1 = glmmPQL(y~aX+b,random=~1|sample,data=traindata) predict(glmm1,newdata=te

Re: [R] Predict Function

2008-04-12 Thread Bill.Venables
and, 4163 AUSTRALIA Office Phone (email preferred): +61 7 3826 7251 Fax (if absolutely necessary): +61 7 3826 7304 Mobile: +61 4 8819 4402 Home Phone: +61 7 3286 7700 mailto:[EMAIL PROTECTED] http://www.cmis.csiro.au/bill.venables/ -Original Message-

Re: [R] Predict Function

2008-04-12 Thread hadley wickham
On Sat, Apr 12, 2008 at 1:06 PM, Biago <[EMAIL PROTECTED]> wrote: > > Hi all - my first time here and am having an issue with the Predict function. > > I am using a tutorial as a guide, locate here: > http://www.ats.ucla.edu/STAT/R/dae/mlogit.htm > > My code gives this error > > > newdata1$pre

[R] Predict Function

2008-04-12 Thread Biago
Hi all - my first time here and am having an issue with the Predict function. I am using a tutorial as a guide, locate here: http://www.ats.ucla.edu/STAT/R/dae/mlogit.htm My code gives this error > newdata1$predicted <- predict(mlogit,newdata=newdata1,type="response") Error in `$<-.data.frame`