[R] Hypothesis Testing using Wald Criterion for two regression models with dummy variables

2012-05-01 Thread meredith
I have two models, controlled by dummy variables to see if the models can be combined into one model with similar intercepts and slopes. Has anyone tried to conduct this type of test in R. I am utilizing the econometric idea of hypothesis testing through the hypothesis of coincidence. I have tried

Re: [R] Hypothesis Testing using Wald Criterion for two regression models with dummy variables

2012-05-02 Thread meredith
the slope). Does this explain my problem better? Meredith -- View this message in context: http://r.789695.n4.nabble.com/Hypothesis-Testing-using-Wald-Criterion-for-two-regression-models-with-dummy-variables-tp4601582p4603260.html Sent from the R help mailing list archive at

[R] Subtracting a matrix 1x28 from a scalar

2012-05-07 Thread meredith
hanks for the help Meredith -- View this message in context: http://r.789695.n4.nabble.com/Subtracting-a-matrix-1x28-from-a-scalar-tp4615590.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/

Re: [R] Subtracting a matrix 1x28 from a scalar

2012-05-07 Thread meredith
554989 0.17561839 Thanks for the help Meredith -- View this message in context: http://r.789695.n4.nabble.com/Subtracting-a-matrix-1x28-from-a-scalar-tp4615590p4615599.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-projec

[R] Automating R for Hypothesis Testing

2012-05-08 Thread meredith
, and the critical value is accepted, I want to print an accept or reject and move on to months 2 and 3, until finally comparing months 12-1 at the end. Is there a way to loop or automate this in R? Thanks Meredith -- View this message in context: http://r.789695.n4.nabble.com/Automating-R-for

Re: [R] Automating R for Hypothesis Testing

2012-05-09 Thread meredith
and 2 > if test statistic less than critical value{ > test second model for months 1 and 2 > print results of the first and second tests? just one of them? > } > move on to months 2 and 3 > etc, until months 12 and 1 > > > Please post example data using dput(da

Re: [R] Automating R for Hypothesis Testing

2012-05-10 Thread meredith
Rui- Thanks this definitely helps, just one quick question. How would you code the values of chi-fm and chi-fms to change based on the degrees of freedom of each model H(i)? Meredith Rui Barradas wrote > > Hello, > > Yes, it does help. Now we can see your data and what you'

Re: [R] Automating R for Hypothesis Testing

2012-05-16 Thread meredith
this correct, with the F-Test? Thanks! Meredith Rui Barradas wrote > > Hello, > > I'm glad it helped. > > As for your second question, I don't know, but I'm not very comfortable > with the way you're doing things. > Why subtract the coefficients of model 1

[R] Event-triggered change in value with a time-delay

2018-04-18 Thread Hannah Meredith
Hello, I am solving a set of ODEs using deSolve and have run into a problem I would appreciate some advice on. One of the parameters (m) in the ODEs changes between two states when one of the variables (D) crosses a threshold (D_T) for the first time in either direction. Additionally, when the var

Re: [R] Event-triggered change in value with a time-delay

2018-04-19 Thread Hannah Meredith
Hi David, Thank you for your suggestion- I will look into it some more. Thanks again, Hannah On Wed, Apr 18, 2018 at 5:09 PM, David Winsemius wrote: > > > On Apr 18, 2018, at 1:04 AM, Hannah Meredith > wrote: > > > > Hello, > > > > I am solving a set of OD

[R] negative binomial GAMM with variance structures

2011-09-22 Thread Meredith Jantzen
tion, which is causing me to get tripped up. Am I defining my negative binomial family correctly for the situation? Do I need to somehow define the variance term before I apply it? Thank you very much. I appreciate your time and patience. Meredith __

[R] normalizing a negative binomial distribution and/or incorporating variance structures in a GAMM

2011-09-26 Thread Meredith Jantzen
ive of any help I can get on this matter. Sincerely, Meredith Jantzen M.Sc. Candidate Department of Biology University of Western Ontario [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

[R] problem with glsm.krige: trendd and trend l must have similar specifications error

2011-10-28 Thread Christy Meredith
Hello, I used glsm.mcmc and likfit.glsm to create model. Now I want to predict at different locations, but I can't get glsm.krige to work. I keep getting the error that trend.d and trend.l must have similar specifications. I have tried numerous ways to include the covariates in the glsm.krige

Re: [R] bug in R2WinBUGS

2009-01-31 Thread Mike Meredith
Problem with the change is that none of our old scripts work! If the model.file is in R's current working directory we either have to use working.directory=getwd() or specify a full path with model.file=file.path(getwd(), "mymodel.bug"). It would be really nice if 'bugs' looked in R's c.w.d. for

Re: [R] how to find "p" in binomial(n,p)

2007-09-19 Thread Mike Meredith
I think the function you need is 'help.search'; try: help.search("binomial") and look for something obvious in the 'stats' package. A good deal quicker and easier than posting to an internet forum! Cheers, Mike. cathelf wrote: > > Dear all, > > I am trying a find the value "p" in binomial.

[R] Comparing density plots using same axes or same axes scale

2012-09-26 Thread Meredith Ballard LaBeau
ype="n", main=colnames[i]) polygon(d,col="red",border="grey")} where sag is a 7305x9 double matrix and 9 different scenarios. I want to be able to compare the distribution using the same axes scale. Can anyone help? Thanks Meredith LaBeau -- Doctoral Candidate D

[R] Merging multiple columns into one column

2012-09-28 Thread Meredith Ballard LaBeau
Thanks Meredith -- Doctoral Candidate Department of Civil and Environmental Engineering Michigan Technological University [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE d

[R] Removing lower whisker in boxplot to see the effects of the high values

2012-09-29 Thread Meredith Ballard LaBeau
River Near Future Climate Scenarios", ylab="Log Load",xlab="Climate Scenarios") I just want to better see the medians and high end tail. Thanks Meredith -- Doctoral Candidate Department of Civil and Environmental Engineering Michigan Technological University [[al

[R] using correlation compound correlation structure with nlme; how to incorporate multple random effects?

2013-09-06 Thread Meredith, Christy S -FS
no precip interaction I get the error message "non-numeric argument to mathematical function Thanks for any help. Christy Meredith This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or th

[R] randomly select another observation with same grouping factor and year value, do for every record in dataframe

2012-10-24 Thread Meredith, Christy S -FS
oads$HUC == "huc1"& roads$REACH_Yr =="yr" , ], 1) output=cbind (initRchid,selected$RchID,selected$Sitetype,selected$REACH_Yr) } Christy Meredith USDA Forest Service Rocky Mountain Research Station PIBO Monitoring Data Analyst Voice: 435-755-3573 Fax: 435-755-3563 T

[R] help with for loop: new column giving count of observation for each SITEID

2012-10-30 Thread Meredith, Christy S -FS
;-indexg[order(indexg$SiteID,indexg$Yr),] obs=0 indexi=na.omit(indexi) for(i in 1:length(indexi$SiteID)){ obs=obs+1 indexi$obs[i]=obs } Thanks for any help you can give. Christy Meredith USDA Forest Service Rocky Mountain Research Station PIBO Monitoring Data Analyst Voice: 435-755-3573 Fax: 435

Re: [R] help with for loop: new column giving count of observation for each SITEID

2012-10-30 Thread Meredith, Christy S -FS
20031 5 B 20062 6 B 20083 7 C 20021 8 C 20032 9 C 20043 Thanks so much for you help! -Original Message- From: William Dunlap [mailto:wdun...@tibco.com] Sent: Tuesday, October 30, 2012 1:07 PM To: Meredith

Re: [R] help with for loop: new column giving count of observation for each SITEID

2012-11-01 Thread Meredith, Christy S -FS
34 2946 2010 2.251 -Original Message- From: arun [mailto:smartpink...@yahoo.com] Sent: Tuesday, October 30, 2012 1:57 PM To: Meredith, Christy S -FS Cc: R help; William Dunlap Subject: Re: [R] help with for loop: new column giving count of observation for each SITEID HI, You c