Re: [R] code to provoke a crash running rterm.exe on windows

2016-05-28 Thread Ben Bolker
d submit a bug report, *or* open a discussion on r-de...@r-project.org (which I'd have said was a more appropriate venue for this question in any case) ... Ben Bolker __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.et

Re: [R] model specification using lme

2016-05-29 Thread Ben Bolker
ention that you're reposting) cheers Ben Bolker __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html a

Re: [R] Effect size measures for GLM

2016-06-24 Thread Ben Bolker
Gianfranco Lovison unipa.it> writes: > > Is there a library for (friendly) calculation of effect size measures for > Generalized Linear Models? I have found "compute.es", but it seems to be > suitable only for Linear Models. A library taking a glm object and > computing > partial R^2-type stati

Re: [R] Fixed Effects in lme function

2016-07-09 Thread Ben Bolker
li li gmail.com> writes: > > Dear all, > For the data below, I would like to fit a model with common > random slope and common random intercept as shown below. I am > interested in obtaining separate fixed effect estimates (intercept > and slope and corresponding hypothesis test) for each

Re: [R] dependent p.values in R

2016-07-10 Thread Ben Bolker
r normality are misguided. Combining p-values from different tests feels like compounding the issue. In any case, I would definitely say that this a question for CrossValidated (http://stats.stackexchange.com), rather than r-help ... Ben Bolker

Re: [R] glmmLasso with interactions errors

2016-07-15 Thread Ben Bolker
Cade, Brian usgs.gov> writes: > > It has never been obvious to me that the lasso approach can handle > interactions among predictor variables well at all. > I'ld be curious to see > what others think and what you learn. > > Brian > For what it's worth I think lasso *does* handle interactio

Re: [R] glmmPQL crashes on inclusion of corSpatial object

2016-07-25 Thread Ben Bolker
e of answerers who don't know the question has been commented on and/or answered already elsewhere). Try to pick the single best venue and stick to it. Ben Bolker __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://st

Re: [R] [R-sig-ME] different results from lme and lmer function

2015-05-26 Thread Ben Bolker
These actually aren't terribly different from each other. I suspect that lmer is slightly closer to the correct answer, because lme reports a "log-likelihood" (really -1/2 times the REML criterion) of 49.30021, while lmer reports a REML criterion of -98.8 -> slightly better fit at -R/2 = 49.4.

Re: [R] lme function to obtain pvalue for fixed effect

2015-05-26 Thread Ben Bolker
ail.html>, "cross-posting is considered to be impolite"). r-sig-mixed-models seems to be more appropriate for these questions. sincerely Ben Bolker __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.et

Re: [R] Why I am not able to load library(R.matlab)? Other packages are fine.

2015-05-29 Thread Ben Bolker
C W gmail.com> writes: > > Hi Henrik, > > I don't quite get what I should do here. I am not familiar with > R.methodS3. Can you tell me what command exactly do I need to do? > > Thanks, > > Mike install.packages("R.methodsS3") install.packages("R.matlab") library("R.matlab") [snip sni

Re: [R] Why I am not able to load library(R.matlab)? Other packages are fine.

2015-05-29 Thread Ben Bolker
ethodS3? But that doesn't make sense, > because I was using R.matlab few weeks ago. I believe I was on R > 3.1. > > Maybe it's in R 3.1 folder? I am using a Mac, btw. > > Cheers, > > -M > > On Fri, May 29, 2015 at 1:55 PM, Ben Bolker > wrote: > >>

Re: [R] Cross-over Data with Kenward-Roger correction

2015-06-09 Thread Ben Bolker
knouri yahoo.com> writes: > > Dear all:for the folowing data, a two-period, two treatment (A=1 vs. B=2) > cross-over is fitted > using the folowing SAS code.  > data one; [snip] > run; > proc mixed data=one method=reml; > class Sbj Per Trt; >    model PEF = Per Trt /ddfm=kr; >    repeated Trt

Re: [R] Different random intercepts but same random slope for groups

2015-06-09 Thread Ben Bolker
ng R command. > However, there seems to be some problem. Any suggestions? Please do not cross-post to more than one R list (in this case, r-sig-mixed-models is more appropriate, and you've already gotten some answers there). Ben Bolker __ R-

Re: [R] Hypergeometric Function seems to give wrong results

2015-07-08 Thread Ben Bolker
age). If this functionality is very commonly used in finance you might try the r-sig-finance mailing list (indicating that you've already tried here). good luck Ben Bolker __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

Re: [R] A question about nlmer in lme4 package

2015-07-11 Thread Ben Bolker
s that it's not easy, but it can be done, see e.g. http://stackoverflow.com/questions/15141952/nlmer-longitudinal-data http://rpubs.com/bbolker/3423 Ben Bolker __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.

Re: [R] Why does dredge() rank models differently for lmer() and MCMCglmm()?

2015-07-18 Thread Ben Bolker
Corina CorinaLogan.com> writes: > > Hello, > I am running my full model (fm) through lmer() and MCMCglmm() using the > default settings: > > model.lmer <- lmer(fm) > model.MCMCglmm <- MCMCglmm(fm) > [snip] > However, when I run the models through dredge(): > > dredge(model.lmer) > dredge(

Re: [R] glm help - final predictor variable NA

2015-07-22 Thread Ben Bolker
matthewjones43 kellogg.ox.ac.uk> writes: > > Hi, I am not a statistician and so I am sure whatever it is I > am doing wrong > must be an obvious error for those who are...Basically I can > not understand > why I get NA for variable 'CDSTotal' when running a glm? > Does anyone have an > idea o

Re: [R] Statistical distribution not fitting

2015-07-22 Thread Ben Bolker
Amelia Marsh yahoo.com> writes: > Hello! (I dont know if I can raise this query here on this forum, > but I had already raised on teh finance forum, but have not received > any sugegstion, so now raising on this list. Sorry for the same. The > query is about what to do, if no statistical distr

Re: [R] Statistical distribution not fitting

2015-07-23 Thread Ben Bolker
thout more information and further time/effort/thought I don't have any simple suggestions how ...) cheers Ben Bolker __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do re

Re: [R] Contr.sum and coefficient tests

2015-07-23 Thread Ben Bolker
François Collin nottingham.ac.uk> writes: > > Dear all, > I would like to run a linear model which includes two factors: > - The first one has two levels, including a reference level. Thus I > have to use the treatment contrast (contr.treatment, reference level > effect = 0, then the intercep

Re: [R] help plotting glmm values

2015-08-07 Thread Ben Bolker
Luis Fernando García gmail.com> writes: > > Dear Fellows, > > I´m sorry if my question is very basic, but I'm still new in the field of R > and the GLMM. In future, you might consider posting to r-sig-mixed-mod...@r-project.org instead ... > I have made a following glmm, and I need to plot

Re: [R] Error with predict and newdata

2015-08-08 Thread Ben Bolker
David Winsemius comcast.net> writes: > > > On Aug 7, 2015, at 2:41 PM, kira taylor wrote: > > > Hi! > > > > I am trying to use predict to apply my model to data from > one time period to > > see what might be the values for another time period. I did this > > successfully for one dataset, a

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

Re: [R] Jaccard index

2015-08-14 Thread Ben Bolker
sreenath macfast.ac.in> writes: > > sim(file_name,method="jaccard") > this command is giving the raw wise similarity matrix > how can i find column wise similarity matrix? > what is the command? > please help me > Based on a search library("sos"); findFn("jaccard sim") I'm guessing that y

Re: [R] neighborhood competition index in r package

2014-12-07 Thread Ben Bolker
catalin roibu gmail.com> writes: > > Dear all! > > Is there a R package to compute neighborhood competition index (Shutz, > Hegyi, and many index). > > Thank you very much! > library("sos") findFn("Hegyi") leads to http://finzi.psych.upenn.edu/R/library/siplab/html/pairwise.html Do

Re: [R] MLE with parameters restricted to a defined range using bbmle

2014-12-08 Thread Ben Bolker
Rolf Turner auckland.ac.nz> writes: > > > I know nothing about the bbmle package and its mle2() function, but it > is a general truth that if you need to constrain a parameter to be > positive in an optimisation procedure a simple and effective approach is > to reparameterize using exp().

Re: [R] lme4 2 factor factorial model with random factors

2014-12-19 Thread Ben Bolker
if the text is accessible that way?). SO or r-sig-mixed-mod...@r-project.org are probably more appropriate follow-up venues. Ben Bolker __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-he

Re: [R] half-logistic distribution

2014-12-29 Thread Ben Bolker
Therneau, Terry M., Ph.D. mayo.edu> writes: > > > On 12/26/2014 05:00 AM, r-help-request r-project.org wrote: > > i want to analyse survival data using typeI HALF LOGISTIC > > DISTRIBUTION.how can i go about it?it installed one on R in the > > survival package didn't include the distribution..

Re: [R] Select subtree with vector of leaves using zoom function of the ape package

2015-01-02 Thread Ben Bolker
posted here); more of the users there will be familiar with these packages. * it would be really helpful, and greatly increase your odds of getting an answer, if you can post a "minimum workable example", that is a _small_ piece of data/code that people can use to replicate your

Re: [R] Fitting a Tweedie distribution

2015-01-02 Thread Ben Bolker
Paul Hudson gmail.com> writes: > > Hello all, > > I want to fit a tweedie distribution to the data I have. > > The R packages I have been able to find assume that I want to use it as > part as of a generalized linear model. > > This is not the case, I want to directly fit the distribution to

Re: [R] Fitting a Tweedie distribution

2015-01-02 Thread Ben Bolker
Ben Bolker gmail.com> writes: > > Paul Hudson gmail.com> writes: > [snip] > library("tweedie") > set.seed(1001) > r <- rtweedie(1000,1.5,mu=2,phi=2) > library("bbmle") > dtweedie2 <- function(x,power,mu,phi,log=FALSE,debug=FA

Re: [R] "se.fit" option to the predict.nls() function

2015-01-05 Thread Ben Bolker
Roger Coppock cox.net> writes: > > When will "R" implement the "se.fit" option to the > predict.nls() function? Is there some schedule? > I think this is unlikely to happen, ever (sorry). The exact method for finding confidence intervals on nonlinear fits would be to compute likelihood p

Re: [R] class of strptime() output

2015-01-05 Thread Ben Bolker
Jinsong Zhao yeah.net> writes: > In the following code snippet, > # > a <- strptime("121114 0510", "%m%d%y %H%M") > b <- data.frame(date = a, res = 1:5) > class(a) > class(b[1,1]) > # > I am wondering why the class of a and b[1,1] are not the same. > > How to make the class of a and b[1,1] to b

Re: [R] "se.fit" option to the predict.nls() function

2015-01-06 Thread Ben Bolker
On 5 January 2015 at 21:08, Ben Bolker wrote: >>> Roger Coppock cox.net> writes: >>> >>>> >>>> When will "R" implement the "se.fit" option to the >>>> predict.nls() function? Is there some schedule? >>>> >

Re: [R] nonmonotonic glm?

2015-01-11 Thread Ben Bolker
Stanislav Aggerwal gmail.com> writes: > > I have the following problem. > DV is binomial p > IV is quantitative variable that goes from negative to positive values. > > The data look like this (need nonproportional font to view): [snip to make gmane happy] > If these data were symmetrical

Re: [R] nonmonotonic glm?

2015-01-11 Thread Ben Bolker
rithm (although occasionally you need to use s(IV,k=something_bigger) to adjust the default *maximum* complexity chosen by the code) On Sun, Jan 11, 2015 at 5:23 PM, Marc Schwartz wrote: > >> On Jan 11, 2015, at 4:00 PM, Ben Bolker wrote: >> >> Stanislav Aggerwal gmail.com>

Re: [R] R 3.1.2 mle2() function on Windows 7 Error and multiple optimal solutions

2015-01-14 Thread Ben Bolker
Mosab Alqurashi KSU.EDU.SA> writes: > > ?Hello, > I want to get the Maximum Likelihood Estimate (MLE) for an Extended > weibull with three parameters. I have two problems. First, some > times if I change the starting point for one of the parameters I got > an error message. Second, sometime wh

Re: [R] R 3.1.2 mle2() function on Windows 7 Error and multiple solutions

2015-01-15 Thread Ben Bolker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 For what it's worth, you can use either nlminb (directly) or optimx within the mle2 wrapper by specifying the 'optimizer' parameter ... this gives you flexibility in optimization along with the convenience of mle2 (likelihood ratio tests via anova(),

Re: [R] the less-than-minus gotcha

2015-02-01 Thread Ben Bolker
Mike Miller gmail.com> writes: > > I've got to remember to use more spaces. Here's the basic problem: > > These are the same: > > v< 1 > v<1 > > But these are extremely different: > > v< -1 > v<-1 > This is indeed documented, in passing, in one of the pages you listed: http://tim-smith.u

Re: [R] How to tell if there is overdispersion in a GLMM?

2015-02-03 Thread Ben Bolker
maggy yan gmail.com> writes: > > I read something on http://glmm.wikidot.com/faq, under "How can I deal with > overdispersion in GLMMs?": > > library(lme4) ## 1.0-4set.seed(101) > d <- data.frame(y=rpois(1000,lambda=3),x=runif(1000), > f=factor(sample(1:10,size=1000,replace=TRUE)))

Re: [R] Unable to use `eval(parse(text))' in nlme::lme

2015-02-08 Thread Ben Bolker
Ravi Varadhan jhu.edu> writes: > I would like to run lme() on a number of response variables > in a dataframe in an automatic manner. Bu, when I > use eval(parse(text=yname)) to denote the LHS of the formula in lme(), > I get the following error message: > > > require(nlme) > > > mod2 <- wi

Re: [R] Coordinate or top left corner + offset

2015-02-09 Thread Ben Bolker
David L Carlson tamu.edu> writes: > > This is more complicated, but it could be rolled up into a function. Replace your mtext() call with the following: > > # Set character expansion size > cx <- 2.5 > # Get the plot coordinates and the character size > ur <- par("usr")[c(1, 4)] > chr <- par("c

Re: [R] Coordinate or top left corner + offset

2015-02-10 Thread Ben Bolker
er which could have > obscured data points. > > David > Not sure, but setting the background to NA (bg=NA) might? help. > -Original Message- From: R-help > [mailto:r-help-boun...@r-project.org] On Behalf Of Ben Bolker > Sent: Monday, February 9, 2015 5:43 PM To: r-h

Re: [R] confint.merMod(method="boot") {lme4} with user supplied FUN to bootMer fails

2015-02-10 Thread Ben Bolker
Torbjørn Håkan Ergon ibv.uio.no> writes: > > Dear list, > > I'm trying to supply a summary function to confint.merMod(method="boot") > {lme4} but get persistent > errors. The following example generates the errors: > > > fm1 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy) > > test = f

Re: [R] Mixed-effects model for pre-post randomization design

2015-02-11 Thread Ben Bolker
Marco Barbàra gmail.com> writes: > > DeaR userRs, > > I recently read this Liang-Zeger article: > > http://sankhya.isical.ac.in/search/62b1/fpaper7.html > > in which (among other things) they adopt a random intercept model for > pre-post designed trials, using a conditional likelihood approac

Re: [R] AR1 covariance structure for lme object and R/SAS differences in model output

2015-02-11 Thread Ben Bolker
anord biol.lu.se> writes: > [snip snip] > We are working on a data set in which we have measured repeatedly a > physiological response variable (y) > every 20 min for 12 h (time variable; 'x') in subjects ('id') beloning to > one of five groups ('group'; 'A' to 'E'). Data are located at: >

Re: [R] horizontal bar plots for CI visualization

2015-02-12 Thread Ben Bolker
agroscope.admin.ch> writes: > > 2.50% 97.50% > intercept 29787966 > glands13143611 > damage169 6144 > treatment L1 778 6703 > treatment L4 -3899 5125 > Length-1817 1828 > plotrix::plotCI(..., err="x") ?? __

Re: [R] %>%

2015-02-17 Thread Ben Bolker
David Barron gmail.com> writes: > > It's in the magrittr package. > > David It also exists in dplyr. (I would guess that it's imported/exported from magrittr.) Although I think the documentation in magrittr is a little better. __ R-help@r-pro

Re: [R] Numerical stability of eigenvalue and hessian matrix in R

2015-02-18 Thread Ben Bolker
C W gmail.com> writes: > > Hi list, > > I am running the following R code, the answer should be zero. But R gives > a very small negative number, what should I do? > > ##R code > library(numDeriv) h_x <- function(x){ a = x[1] b = x[2] c = x[3] d = x[4] (a^2 + c^2 + d^2) * (

Re: [R] Running command had status 1 in R

2015-02-22 Thread Ben Bolker
Fatemeh a gmail.com> writes: > > Hi all, > > I am running a software which is shinybased within R : it gives me this > error: > > Warning: running command 'octave -qf octave/muxMultisliceCommunity.m' > had status 1 > > I was wondering if anyone could help me where the problem is and what is >

Re: [R] HELP asin transformation

2015-02-22 Thread Ben Bolker
CHIRIBOGA Xavier unine.ch> writes: > > Dear all, > > I attempted to transform my data using "asin" but a WARNING message appears: > > dat1$Abu.tr<-asin(sqrt(dat1$Abundance/100)) > Warning message: > In asin(sqrt(dat1$Abundance/100)) : NaNs produced > > What does it mean? Is it a problem? How

Re: [R] Help with optim() to maximize log-likelihood

2015-03-09 Thread Ben Bolker
p(exp(z+beta))) - 0.5*(log(2*pi)+psi) piYc_ir[i,] <- exp(piYc_ir[i,]) follow-ups should probably go to r-sig-mixed-mod...@r-project.org instead ... Ben Bolker __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://st

Re: [R] Gamma Distribution - is there any problem with "pgamma"?

2015-03-11 Thread Ben Bolker
Amelia Marsh yahoo.com> writes: > > Dear R forum > > I have following data > > amounts = c(928906.144,156091.0576,433798.3404,993425.7224, > 1323976.364,649106.9339, 369967.2612,2528872.35,1226093.655, > 1145446.149,1809624.453,599329.0394,2200955.213,2583318.064, > 745625.8069,961828.8828,174

Re: [R] Error in lm() with very small (close to zero) regressor

2015-03-28 Thread Ben Bolker
peter dalgaard gmail.com> writes: > > > > On 28 Mar 2015, at 00:32 , RiGui business.uzh.ch> wrote: > > > > Hello everybody, > > > > I have encountered the following problem with lm(): > > > > When running lm() with a regressor close to zero - > of the order e-10, the > > value of the estim

Re: [R] Error in lm() with very small (close to zero) regressor

2015-03-29 Thread Ben Bolker
RiGui business.uzh.ch> writes: > [snip] > I am terribly sorry for the code not being reproducible, is the > first time I am posting here, I run the code several times before I > posted, but...I forgot about the library used. Thanks for updating. > To answer to your questions: > >> How do

Re: [R] Help w/ variable names in loop with lmer

2015-03-29 Thread Ben Bolker
David Crow cide.edu> writes: > > Hi, R users- > > I'm estimating random effects models with cross-level interactions; I want > to interact each of a vector of level-1 variables with each of a vector of > level-2 variables. Here's the code: > > > #create data frame with le

Re: [R] temporal autocorrelation in MCMCglmm

2015-03-30 Thread Ben Bolker
ing a 'null' lme() model (fixed=resid~1, random=~1|individual) and then using the ACF() method (not the same thing as acf()) on the resulting model fit. Ben Bolker __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https:

Re: [R] Package build system adds line break in DESCRIPTION URL

2015-04-03 Thread Ben Bolker
00 (2) this feels like it is more suitable for r-de...@r-project.org Ben Bolker __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project

Re: [R] Question on CCA and RDA analysis

2015-04-10 Thread Ben Bolker
Luis Fernando García gmail.com> writes: > > Dear R experts, > > I wanted to know if you can suggest me any website or tutorial just to > learn about how to make a RDA or CDA in R > > Thanks in advance! I hate to ask, but did you try Googling ""canonical correspondence analysis" R" ... ?

Re: [R] Cannot run install binary package on Windows 8

2015-04-11 Thread Ben Bolker
Maciej Węgorkiewicz gmail.com> writes: > > Hi all, > > I am just starting with R and cannot use "lmtest" package on Windows 8. > This package contains dwtest function that I am interested in. > > I began with installing the core of R (with rgui) - version 3.1.3 64-bit. > > Then I installed lm

Re: [R] Help with lsmeans

2014-08-26 Thread Ben Bolker
Dan Dillon gmail.com> writes: > > Colleagues: > [snip] > > My data are from a behavioral experiment in which two groups of subjects > complete 200+ trials of a task with two conditions. Each subject is tested > in one of four separate locations. I record accuracy (0 or 1) and response > tim

Re: [R] 8 fast or 4 very fast cores?

2014-09-15 Thread Ben Bolker
ble that what you mean by "simulation studies" is different. If you can do some benchmarking of your problems on an existing machine that would probably be a good idea. Ben Bolker __ R-help@r-project.org mailing list https://stat.e

Re: [R] optim, L-BFGS-B | constrained bounds on parms?

2014-09-20 Thread Ben Bolker
me more options for bounded optimization are bobyqa from the minqa package, or the equivalent from the nloptr package -- neither computes the hessian, but the numDeriv package makes that pretty easy ... Ben Bolker __ R-help@r-project.org mailing l

Re: [R] Error in quantile.default(resids) : missing values and NaN's not allowed if 'na.rm' is FALSE

2014-09-22 Thread Ben Bolker
Chad Danyluck gmail.com> writes: > > About a year ago I ran some analyses using lmer. The general syntax was: > > mlm <- lmer(var1 ~ (1|dyad) + > var2 + var3*var4*var5, na.action=na.exclude); > summary(mlm) > > The model ran fine and I saved the output. I've recently turned back to > those an

Re: [R] Robust Standard Error in R

2014-09-28 Thread Ben Bolker
Arnab Dutta gmail.com> writes: > > Hi, > > In order to have robust standard errors in R, what would be the command > that can generate results similar to the "robust" option in STATA? I tried > using the "lmrob" command from the package "robustbase". With that, the > Adjusted R squared is q

Re: [R] optim for maximization

2014-09-28 Thread Ben Bolker
Padmanand Madhavan Nambiar gmail.com> writes: > > Hi Sir, > > How to use the "optim" for maximization. I don't understand the > control$fnscale option that is given on help page. It says if the > control$fnscale is negative, the function will be maximized. > > Thanks a lot > > Padmanand

Re: [R] residuals of glm

2014-09-29 Thread Ben Bolker
Yuan Jian yahoo.com> writes: > > Hello, > I found the residuals of glm is not the same as calculated manually. > >y=c(12,14,33,50,67,74,123,141,165,204,253,246,240) > > t=1:13 > > m1=glm(y~t+I(t^2),family=poisson(link="log")) > > coefficients(m1)[1]+coefficients(m1)[2]*log(t)+ > coefficients(m1

Re: [R] Question about range of letters

2014-10-04 Thread Ben Bolker
Nia Gupta yahoo.com> writes: > > Hello, > I have a column with a bunch of letters. I would like to keep some > of these letters (A,C,D,L) and turn the rest into 'X'. > I have tried using ifelse with '|' in between the argument but it > didn't work nor did 4 separate ifelse statements. > E

Re: [R] truncated normal

2014-10-05 Thread Ben Bolker
Bob O'Hara gmail.com> writes: > > This isn't an R question at all, so I don't know why it's on this list. But > the best answer I've got is "a truncated t-distribution with an infinite > number of degrees of freedom". > > Bob Or, perhaps more productively: "since your question is a general

Re: [R] standard deviation

2014-10-07 Thread Ben Bolker
eliza botto hotmail.com> writes: > > Dear useRs, > Is there a direct command in R to calculate standard deviation of BURR distribution in R? I know the direct > function in VBA and worksheet. but is there a similar function in R? > VBA > =BurrStdev(k,alpha,beta,[gamma]) > Worksheet: > =BurrS

Re: [R] glm - rgamma vector as predictor

2014-10-08 Thread Ben Bolker
Wim Kreinen gmail.com> writes: > [snip] > > Actually, I started with rgamma to generate some random vectors because I > wanted to play around with various conditions (and become familiar with > gamma shape). But before you can start with gamma shape you need to have a > glm object. > > Assumi

Re: [R] glmer with multiple random slopes

2014-10-22 Thread Ben Bolker
David Kikuchi gmail.com> writes: > > Hi all, > > I'm modeling the probability that a subject attacks or rejects a prey > item based on its proportion of yellow coloration and size. There are > two populations of prey, one defended and the other undefended, so > subjects should reject one typ

Re: [R] Lme4 Package Help!

2014-11-06 Thread Ben Bolker
u are loading only the base lme4 package and not the lmerTest package. If my guess isn't right, then you're going to have to provide more information. Follow-ups to r-sig-mixed-mod...@r-project.org , please . Ben Bolker __ R-help@r-proje

Re: [R] Lme4 Package Help!

2014-11-08 Thread Ben Bolker
Doran, Harold air.org> writes: > > Daniel > > Lmer has never returned p-values from a model summary; > this is a well-known and discussed issue. You must > have post-processed the data in some way to get the p-values. But it's worth noting that lmerTest does, and the way it works makes it p

Re: [R] optimx

2014-11-29 Thread Ben Bolker
Glenn Schultz me.com> writes: > > Hello All, > I need some help with optimx, mostly due to my apparent lack of > imagination than optimx itself. Below is the pertinent code for > which I have a question. I am fitting to the term structure of swap > rates per Cox, Ingersoll, and Ross. As you

Re: [R] equivalent of repeated measures anova using lmer

2015-08-20 Thread Ben Bolker
asudar gmail.com> writes: > > I am trying to run a linear mixed effects model similar to the 2*2*2 anova > design. My DV is reaction time and fixed factors are time (pre vs. > post:within-subject), condition (congruent vs. incongruent: within subject) > and stimulation (vertex vs. DLPFC: between

Re: [R] urgent question about Lmer models

2015-09-03 Thread Ben Bolker
but (to the original poster) *please don't cross-post to R lists and StackOverflow*; it causes wasted effort, as in this case. Ben Bolker __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-h

Re: [R] maximum-likelihood-estimation with mle()

2015-09-12 Thread Ben Bolker
peter dalgaard gmail.com> writes: > > You are being over-optimistic with your starting values, and/or > with constrains on the parameter space. > Your fit is diverging in sigma for some reason known > only to nonlinear-optimizer gurus... > > For me, it works either to put in an explicit > c

Re: [R] Accessing defunct package

2015-09-25 Thread Ben Bolker
Dennis Fisher plessthan.com> writes: > Colleagues, > > In the past, I used a package: > SASxport > to output files to SAS’s XPT format. This was useful because FDA requests that data be submitted in that > format (even though they typically must reconvert to some other format before the

Re: [R] Find Crossover Points of Two Spline Functions

2015-09-28 Thread Ben Bolker
Dario Strbenac uni.sydney.edu.au> writes: > > Good day, > > I have two probability densities, each with a function determined > by splinefun(densityResult[['x']], > densityResult[['y']], "natural"), where densityResult is the > output of the density function in stats. > How can I determine all

Re: [R] Find Crossover Points of Two Spline Functions

2015-09-28 Thread Ben Bolker
Bert Gunter gmail.com> writes: > > Use ?uniroot to do it numerically instead of polyroot()? > > Cheers, > Bert > Bert Gunter The problem with uniroot() is that we don't know how many intersections/ roots we might be looking for. With polyroot(), we know that there can be at most 3 roots that

Re: [R] installing tikzDevices for R 3.2.3

2016-01-16 Thread Ben Bolker
Ranjan Maitra inbox.com> writes: > > On Fri, 15 Jan 2016 21:25:06 -0600 Ranjan Maitra inbox.com> wrote: > > > Hi, > > > > I wanted to install tikzDevices on a installation of > R (3.2.3) on a new machine. However, I am getting: > > > > > install.packages('tikzDevices') > > > > Warning mess

Re: [R] MCMCglmm and iteration

2016-02-16 Thread Ben Bolker
Rémi Lesmerises yahoo.ca> writes: > Hi everyone, I'm running a bayesian regression using the package > MCMCglmm (Hadfield 2010) and to reach a normal posterior > distribution of estimates, I increased the number of iteration as > well as the burnin threshold. However, it had unexpected > outcome

Re: [R] Ruofei Mo - How can I generate correlated data with non-normal distribution?

2016-03-02 Thread Ben Bolker
Ruofei Mo【莫若飞】 <911mruofei tongji.edu.cn> writes: > > Hi, All, > > I have a question about how to generate correlated data with non-normal > distribution? Basic, I have a variable a that follows a normal distribution, > a ~ N(0,1), then I want to generate another variable b that follows a > uni

Re: [R] Regression with factor having1 level

2016-03-10 Thread Ben Bolker
Robert McGehee gmail.com> writes: > > Hello R-helpers, > I'd like a function that given an arbitrary formula and a data frame > returns the residual of the dependent variable, and maintains all > NA values. > > Here's an example that will give me what I want if my formula is y~x1+x2+x3 > and m

Re: [R] How to solve an NLME problem?

2016-03-29 Thread Ben Bolker
David C Blouin lsu.edu> writes: > I have a nonlinear model where I want to include random > coefficients for a sample of random SUBJECTS. The fixed effects part > of the model is Y ~ B + (T - B) / (1 + 10**(X - C)) and I would like > to include random coefficients b for B, t for T, and c for C.

Re: [R] Regarding to R

2016-05-10 Thread Ben Bolker
t;. What is most useful will depend on your background; your field/desired type of analyses; language; personality; etc. etc.. There are literally thousands of R tutorials and books, many available for free on the internet. I'd suggest you google "learning R programming", inspect a do

Re: [R] Coverage Probability

2016-05-10 Thread Ben Bolker
Muhammad Kashif uaf.edu.pk> writes: > > Dears > Can anyone help me to solve the issue. > > By using" boot" and "boot.ci" package in R we can construct bootstrap confidence intervals. How we > calculate the coverage probability of these intervals. Calculating coverage probability for any but

Re: [R] error in lmerTest after updating to R 3.3.0

2016-05-10 Thread Ben Bolker
Pascal A. Niklaus ieu.uzh.ch> writes: > > Dear all, > > After updating to R 3.3.0 (inadvertently, via apt-get), I get an error > when using lmerTest. Here is an example: > > library(lmerTest) > library(MASS) > data(oats) > m <- lmer(Y ~ N*V + (1|B/V), data=oats) > summary(m) > > summary from

Re: [R] Control parameter of the optim( ): parscale

2008-07-21 Thread Ben Bolker
*why* you want to do this, but you can use e.g. fixed=list(fixedpar=27) to force one of the parameters of the function to be set rather than optimized. Ben Bolker __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Error in installing packages

2008-07-22 Thread Ben Bolker
Lazarus Mramba kilifi.kemri-wellcome.org> writes: > > Dear R Users; > > I am an R user who has recently bought a new laptop;Toshiba Satellite > U405 running on both Windows Vista and Ubuntu. > > I have problems on the wondows vista when installing packages. The > argument 'lib' is missing. Ho

Re: [R] Parameter names in nls

2008-07-22 Thread Ben Bolker
pi*data.x + rnorm(50,sd=20) plot(data.x,data.y) nls(y~fitting.fn(a,b,x),data=data.frame(x=data.x,y=data.y), start=list(a=0,b=0)) Ben Bolker __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the post

Re: [R] Simple... but...

2008-07-23 Thread Ben Bolker
t to actually be? > I think he wants x = c(4,2,5) y = c(1,5,3) c(rbind(x,y)) [1] 4 1 2 5 5 3 Or less cryptically/magically: n <- length(x) z <- numeric(2*n) z[seq(1,2*n,by=2)] <- x z[seq(2,2*n,by=2)] <- y Ben Bolker __ R-help@

Re: [R] Quantitative analysis of non-standard scatter plots.

2008-07-23 Thread Ben Bolker
h vignette (library(quantreg); vignette("rq")). Ben Bolker __ 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-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Convert list of lists <--> data frame

2008-07-23 Thread Ben Bolker
bind",pats) pats2 <- apply(pats.df,1,as.list) identical(pats,pats2) Ben Bolker __ 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-guide.html an

Re: [R] Help with which()

2008-07-24 Thread Ben Bolker
s 3573.1 and the other of which is 3573.15, they should not be treated as equal. Something else is going on. Could the original poster please send a small reproducible example? > Operons = matrix(c(3573.1,0,0,0,3573.15,0),ncol=2) > which(Operons==3573.1,arr.ind=TRUE) row col [1,]

Re: [R] Help with which()

2008-07-24 Thread Ben Bolker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: | Hi guys, | | Thank you all for looking at this, and I'm sorry - I was making a silly | mistake. | I was using a previous version of the data table in R, while looking at | a new | file in excel (its easier for me to view the

Re: [R] Maximization under constraits

2008-07-25 Thread Ben Bolker
should work fine [or maybe lower=c(0.002,0.002) if you want to make absolutely sure you don't hit the boundaries] If you use stats4::mle or bbmle::mle2 (which are both wrappers for optim(), so the advice above applies) you will be able to do a little bit mo

Re: [R] issues with gap.plot function

2008-07-26 Thread Ben Bolker
Zheng Lu umich.edu> writes: > > > Dear all: > > I have the following codes: > > Xdata<-c(2,3,8,9,10) > Ydata<-1:5 > gap.plot(Xdata, Ydata,gap=c(5,6),gap.axis="x",type="o") > > However, the type='o' seems only work on the first part of gap plot, the second half of the plot always just > p

Re: [R] axis.break on Date-x-axis in lattice xyplot

2008-07-28 Thread Ben Bolker
es and try to replicate that inside your panel function with panel.xxx functions ... Ben Bolker __ 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

  1   2   3   4   5   6   7   8   9   10   >