[R] 6 different errors while using glm.nb

2012-03-01 Thread Lucas
Hello to everyone. I need your help. I´m trying to fit the same *glm.nb* to a different data set and i am getting these errors in some of the data. Sometimes, one data set has two of these errors when fitting the model. 1.- Error en while ((it <- it + 1) < limit && abs(del) > eps) { : valor aus

[R] Nagelkerke R2

2012-03-05 Thread Lucas
anyone can help me I´d really appreciate it. Greetings Lucas. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

[R] evaluate String

2012-03-06 Thread Lucas
Hello to everyone. In MATLAB you can find a function that executes a text string. I have not find it in R. Does anyone knows a similiar function in R, i think a valuable tool. Thank you. Lucas. [[alternative HTML version deleted]] __ R-help@r

Re: [R] evaluate String

2012-03-06 Thread Lucas
PERFECT Thank you so much. Lucas. 2012/3/6 R. Michael Weylandt > eval(parse(text = STRING)) > > but you often don't need to do this. A somewhat canonical quote in the > R-world: > > If the answer is parse() you should usually rethink the question. > -- Thomas Lum

[R] Problems with generalized linear model (glm) coefficients.

2012-03-07 Thread Lucas
more options? What does it mean that I keep getting those signs? If anyone could help me I would really appreciate it. Thank you. Lucas. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman

Re: [R] Re : Problems with generalized linear model (glm) coefficients.

2012-03-07 Thread Lucas
. 2012/3/7 Pascal Oettli > Hi Lucas, > > Do you apply your analysis in time or in space? > > Regards, > Pascal > > > > ----- Mail original - > De : Lucas > À : r-help@r-project.org > Cc : > Envoyé le : Mercredi 7 mars 2012 22h34 > Objet : [R

Re: [R] Re : Problems with generalized linear model (glm) coefficients.

2012-03-07 Thread Lucas
taking the time to answer my questions. Lucas. 2012/3/7 peter dalgaard > > On Mar 7, 2012, at 15:02 , Lucas wrote: > > > Hi Pascal. > > > > I applied my analysis in time. I have 25 fire seasons, each season starts > > on November and ends up on April (our

[R] readHTLMTable help

2012-03-27 Thread Lucas
LMTable(url), the table is downloaded in a unfriendly format and I can not differentiate the column If anyone could help me I´ll appreciate it. Thank you. Lucas. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list htt

[R] Trust in a glm.nb model results with an itereation limit reached

2012-02-10 Thread Lucas
em? Thank you for taking the time to help me. Greetings Lucas. -- View this message in context: http://r.789695.n4.nabble.com/Trust-in-a-glm-nb-model-results-with-an-itereation-limit-reached-tp4376073p4376073.html Sent from the R help mailing list archive at

[R] Matrix "BYTES" size

2012-05-07 Thread Lucas
e same matrix but using even less bytes? I´ll appreciate if you can help me. Thank you. Lucas [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide h

[R] depmixs4 standardError() issue

2023-05-31 Thread Heather Lucas
Hello, I've been enjoying using the "Mixture and Hidden Markov Models in R" by Visser & Speekenbrink to learn how to apply these analyses to my own data using depmixS4. I currently have a fitted 4-state mixture model with three emissions variables and one binomial covariate (HS). I am trying t

Re: [R] depmixs4 standardError() issue

2023-07-07 Thread Heather Lucas
, this package seems to be working well for me so far. Thanks again for taking the time to respond to my question! Best, Heather -- Heather D. Lucas, PhD (she/her pronouns) Assistant Professor, Cognitive and Brain Sciences Committee on Diversity and

[R] Plotting GAM fit using RGL

2013-08-15 Thread Lucas Holland
Hello all, I’ve fitted a bivariate smoothing model (with GAM) to some data, using two explanatory variables, x and y. Now I’d like to add the surface corresponding to my fit to a 3D scatterplot generated using plot3d(). My approach so far is to create a grid of x and y values and the correspo

[R] Problem fitting GAM

2013-09-10 Thread Lucas Holland
Hey all, I've got some data of the form: > head(df) claims accident_year development_year 1 45630 11 2 53025 21 3 67318 31 4 93489 41 5 80517 51 6 68

[R] Copula package - normalCopula() param order

2013-03-17 Thread Lucas Holland
Hey all, I'm trying to construct a 7-dimensional normal copula using the copula package. I'd like to supply as parameter a randomly generated correlation matrix (that I'll convert to a vector so I can feed it to the normalCopula function). What order do the pairwise correlations inside that vec

[R] Median across matrices

2013-03-22 Thread Lucas Holland
Hey all, I have a list of matrices. I'd like to calculate the median across all those matrices for each element. What I'd like to end up with is a matrix containing the median of all [1,1] [1,2] etc. elements across all matrices. Is there a concise way of doing that? Thanks! _

[R] GAM Penalised Splines - Intercept

2013-04-23 Thread Lucas Holland
Hey all, I'm using the gam() function inside the mgcv package to fit a penalised spline to some data. However, I don't quite understand what exactly the intercept it includes by default is / how to interpret it. Ideally I'd like to understand what the intercept is in terms of the B-Spline and

[R] Polynomial Regression and NA coefficients in R

2013-04-27 Thread Lucas Holland
Hey all, I'm performing polynomial regression. I'm simulating x values using runif() and y values using a deterministic function of x and rnorm(). When I perform polynomial regression like this: fit_poly <- lm(y ~ poly(x,11,raw = TRUE)) I get some NA coefficients. I think this is due to the h

[R] Deldir() Thiessen Polygons Problem

2012-09-24 Thread Lucas Chaparro
Good evening to all. I find myself trying to create some Thiessen Polygons, in order to finish a meteorology research. This is the script I found to create the Polygons: * * *voronoipolygons <- function(x) {* * require(deldir)* * if (.hasSlot(x, 'coords')) {* *crds <- x@coords * *} else

[R] ffbase, help with %in%

2012-10-01 Thread Lucas Chaparro
> 1 y sólo el primer elemento será usado in a regular data.frame I use data[a,] to extract the rows that a == TRUE, but when i do this in a ffdf i get this error: > data[a,]Error: vmode(index) == "integer" is not TRUE I'm just learning how to use the ff package so, obvi

[R] ffsave problems

2012-10-02 Thread Lucas Chaparro
= chr "byte" .. .. ..- attr(*, "maxlength")= int 65640757 .. .. ..- attr(*, "pattern")= chr "ff" .. .. ..- attr(*, "filename")= chr "C:/Users/ADMIN-~1/AppData/Local/Temp/RtmpqmcfGU/ff10d824ef517f.ff" .. .. ..- attr(*, "pagesi

[R] predict glm() with offset

2012-10-31 Thread Lucas Chaparro
odel? If anyone can help me, i´d really appreciate it. Thank you. Lucas. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.o

[R] Logistic Regression with Offset value

2012-11-05 Thread Lucas Chaparro
Dear R friends. I´m trying to fit a Logistic Regression using glm( family='binomial'). Here is the model: *model<-glm(f_ocur~altitud+UTM_X+UTM_Y+j_sin+j_cos+temp_res+pp, offset=(log(1/off)), data=mydata, family='binomial')* mydata has 76820 observations. The response variable f_ocur) is a 0-1. Thi

[R] Logistic Regression with Offset value

2012-11-05 Thread Lucas Chaparro
7;)* And here comes my question, does the predict function takes into consideration the *offset *used to create the model? if not, what should I do in order to get the correct probabilities in the new data? I´d really appreciate if anyone could help me. Thank you. L

[R] Jackknife in Logistic Regression

2012-11-14 Thread Lucas Chaparro
P.S. More information can be added if needed. Best regards. Lucas. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.o

[R] Comparing two GAMs using anova (mgcv)

2013-09-20 Thread Lucas Holland
Hey all, I've fitted two GAMs to some data using mgcv. The only difference between the two models is that one includes an additional smooth term (the smooth terms are s(x), s(y) and s(log(y)), the difference being that one model contains s(y) as additional term whereas the other one only contai

[R] Split data frame by date (POSIXlt)

2011-08-24 Thread Franc Lucas
Hello everyone, I want to split a data.frame by the column date . The data frame looks like this date time openclose 02.01.201109:00:00 1000 1200 02.01.201109:05:02 1200 1203 ... 01.02.2011

[R] Escape sequence in eval ()

2011-06-15 Thread Franc Lucas
Hello, I am wondering how to get the quotation marks into a variable expression. I can't escape it with the backslash \ ... Example: I can access my data frame via TABLE$"2011-01-02"$columnD Now I want to do this automatically.. (with a for loop).. a <- TABLE b <- " \"20

[R] [R-pkgs] New package "geotools"

2012-01-30 Thread Antoine Lucas
NearToCode(zipCode("Paris"),7) Regards, Antoine Lucas. ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help@r-project.org mailing list

[R] Problems computing 2-way-mixed-model ANOVA

2008-11-05 Thread Lucas Eggert
age as additional covariates in the model, but I am not sure how to do this either. Any help would be very much appreciated! Thank you, Sincerely, Lucas Eggert [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Is it good practice to have a package depend on Rtools(for unziping of .7z and.rar files)? Crab legal?

2018-03-29 Thread Lucas Ferreira Mation
l strategy that did not support .7z and .rar "unzipping", requesting the user to manually unpack those files. regards Lucas [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Is it good practice to have a package depend on Rtools(for unziping of .7z and.rar files)? Crab legal?

2018-03-29 Thread Lucas Ferreira Mation
ings into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Thu, Mar 29, 2018 at 6:56 AM, Lucas Ferreira Mation > wrote: > > I created this package, > > > > https://github.com/lucasmation/microdadosBrasil > > > &g

[R] How to pre-process fwf or csv files to remove unexpected characters in R?

2016-11-06 Thread Lucas Ferreira Mation
ted-characters-when-importing-to-r> ). regards Lucas Mation IPEA - Brasil [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the p

Re: [R] How to pre-process fwf or csv files to remove unexpected characters in R?

2016-11-06 Thread Lucas Ferreira Mation
llelized and C++ based 2016-11-06 14:16 GMT-02:00 David Winsemius : > >> On Nov 6, 2016, at 5:36 AM, Lucas Ferreira Mation >> wrote: >> >> I have some large .txt files about ~100GB containing a dataset in fixed >> width file. This contains some errors: >

[R] mood.test/mood.medtest

2017-03-15 Thread Leemann, Lucas T
for a reproducible example. library(RVAideMemoire) set.seed(123) a <- runif(100) b <- runif(120,0.2,1.1) indicator <- c(rep(0,100),rep(1,120)) x <- c(a,b) mood.test(x ~ indicator) mood.medtest(x ~ indicator) Has anybody encounter this problem before or would be able to provide any insights? B

[R] Import/export ENVI files

2009-08-24 Thread Lucas Sevilla García
Hi! I'm a beginner with this webpage so, I don't know if I'm sending my question to the correct site. Anyway, I'm working with R and I need to import and export ENVI files, (*.HDR files). A colleague told me that there is a package to import/export envi files but I haven't found that package, s

[R] Save data in txt

2009-09-12 Thread Lucas Sevilla García
model not from an specific predictor. Cheers, Lucas _ [[elided Hotmail spam]] [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mai

[R] Variable as a filename

2009-09-23 Thread Lucas Sevilla García
hen I R have to open file 2005,...That's my question, How can I write the order read.csv2 in a way to obtain the file correspondant to the year read in the for loop. Thanks in advance. Lucas ___

[R] P-value and R-squared variable selection criteria

2009-09-24 Thread Lucas Sevilla García
ess I can build it by myself but it will take me a while but I would like to know if there is some package to help to do it faster. Well, thanks in advance. Lucas _ Nuevo Windows Live

[R] Check value interval in a if loop

2009-09-27 Thread Lucas Sevilla García
t;0.05 but it doesn't get other contidion pvalue<0.1) does anyone know a way to stablish a inteval as an statement for my if loop. Thanks in advance Lucas _

[R] Read header csv file

2009-09-30 Thread Lucas Sevilla García
the one I need to do?. Probably my for loop is not the best, I am still a beginner with R, and probably there are some better forms to express in R what I need but I am working alone so there is nobody in person to help me so I

[R] Interpolation

2009-10-06 Thread Lucas Sevilla García
of interpolated data don't macht the area of the natural park. And I don't know how to solve this. If anyone know any possible reason or any suggestion to do an interpolation, I would be really grateful. Lucas __

[R] stepwise with F statistics

2009-10-13 Thread Lucas Sevilla García
d in several messages from the community that it's possible to do a stepwise using F statistics as criteria, but they don't specify how to do it, so, I would appreciate if anyone can help me with some indication about any package that could do

[R] Using optim with parameters that are factors (instead of continuous parameters)

2011-10-22 Thread Lucas Merrill Brown
I've been programming maximum likelihood estimation models using the function "optim." My current research requires modeling a particular parameter as a categorical variable (what R calls a "factor"), not as a continuous parameter. (The research question is, at what level of X does a subject in ou

Re: [R] Using optim with parameters that are factors (instead of continuous parameters)

2011-10-27 Thread Lucas Merrill Brown
holds, however, re-running the regression five times for each individual is a little unwieldy. So it made the most sense to use solution #2. Thanks again for your prompt and productive response! Lucas __ R-help@r-project.org mailing list https://stat.ethz.ch/

[R] Piecewise Lasso Regression

2012-06-05 Thread Lucas Santana dos Santos
Hi All, I am trying to fit a piecewise lasso regression, but package Segmented does not work with Lars objects. Does any know of any package or implementation of piecewise lasso regression? Thanks, Lucas __ R-help@r-project.org mailing list https

Re: [R] Piecewise Lasso Regression

2012-06-06 Thread Lucas Santana dos Santos
Hi Vito, I am more interested in selecting the number of breakpoints. My data has some structure and I believe that fitting a piecewise regression would be of great benefit. Thanks, Lucas On Jun 6, 2012, at 4:54 AM, Vito Muggeo (UniPa) wrote: > dear lucas, > yes you are right, seg

Re: [R] Piecewise Lasso Regression

2012-06-08 Thread Lucas Santana dos Santos
Dear Vito, Thank you very much for the advice - I will try it and see how the regression looks. Best, Lucas On Jun 6, 2012, at 11:45 AM, Vito Muggeo (UniPa) wrote: > dear Lucas, > If you are interested in selecting the number of breakpoints here a possible > remedy: > > 1.

Re: [R] Circular Graph Recommendation Request

2022-05-28 Thread Lucas Heber Mariano Dos Santos
That`s voronoi tremap Here a tutorial to get you started https://www.stat.auckland.ac.nz/~paul/Reports/VoronoiTreemap/voronoiTreeMap.html -Original Message- From: R-help On Behalf Of Stephen H. Dawson, DSL via R-help Sent: Saturday, May 28, 2022 1:10 PM To: Bert Gunter Cc: r-help Sub

Re: [R] Circular Graph Recommendation Request

2022-05-28 Thread Lucas Heber Mariano Dos Santos
Here another one https://rpubs.com/StevenDuttRoss/voronoiTreemap -Original Message- From: Stephen H. Dawson, DSL Sent: Saturday, May 28, 2022 3:37 PM To: Lucas Heber Mariano Dos Santos ; Bert Gunter Cc: r-help Subject: Re: [R] Circular Graph Recommendation Request Thank you, Lucas

Re: [R] nlme gls issue

2022-09-18 Thread Lucas Heber Mariano Dos Santos
You shouldn't use use r-squared in the context of glm, in fact it's not possible. But if you need try calculating pseudo r-squared values From: R-help on behalf of Rolf Turner Sent: Saturday, September 17, 2022 12:29:56 AM To: Kayla Bazzana Cc: R-help@r-project