Re: [R] GAM with the negative binomial distribution: why do predictions no match with original values?

2016-11-25 Thread peter dalgaard
> On 23 Nov 2016, at 23:32 , Simon Wood wrote: > > ?predict.gam (mgcv) says > >"Note that, in common with other prediction functions, any offset > supplied to ‘gam’ as an argument is always ignored when > predicting, unlike offsets specified in the gam model formula." > >

[R] How to find coefficient of determination for pareto distribution in R?

2016-11-25 Thread TicoR
How to find coefficient of determination for pareto distribution in R? I have made model using generalized Pareto distribution. How can I find the coefficient of distribution for model in R [[alternative HTML version deleted]] __ R-help@r-proje

[R] GAMs: predictions with the number of live traps as an offset variable

2016-11-25 Thread Nelly Reduan
Hello, I built a Generalized Additive Model (GAM) using a negative binomial distribution (my response variable represents an animal count). In the GAM, I included the log(trapping effort) as an offset variable to account for variations in the sampling effort across trapping sites. Trapping effo

[R] error with caretEnsmble of different training datasets of SVM - need help

2016-11-25 Thread Zahyah Alharbi (CMP)
Hi, The following is a reproducible example , what basically I am trying to do , is creating five imputed datasets then apply SVM to each imputed dataset using the train function in caret, then ensemble the resulted training model using caretEnsemble. Lastly, I am predicting each test set using