[R] pseudoreplication

2021-09-14 Thread James Henson
Greetings R Community The ASReml-R package will analyze data from experiments with pseudoreplications. Dealing with Pseudo-Replication in Linear Mixed Models https://www.vsni.co.uk/case-studies/dealing-with-pseudo-replication-in-linear-mixed-models Will the ‘lme4’ package return an equivalent ana

Re: [R] Error in loadNamespace

2017-12-07 Thread James Henson
Thanks David!, that fixed the problem. Best regards, James On Thu, Dec 7, 2017 at 1:19 PM, David Winsemius wrote: > > > On Dec 7, 2017, at 10:47 AM, James Henson wrote: > > > > Hello R Community, > > > > I inadvertently updated packages via R Studio when a p

[R] Error in loadNamespace

2017-12-07 Thread James Henson
Hello R Community, I inadvertently updated packages via R Studio when a package was open. Now when R Studio is opened the message below appears in the console panel. Error in loadNamespace(name) : there is no package called ‘yaml’ Error in loadNamespace(name) : there is no package called ‘yaml’

[R] Bayes Factor

2017-07-06 Thread James Henson
Hello R Community; Just posted a question about Bayes Factor. But, just answered my own question. What is needed is to convert a 'dplyr' data frame into a standard data frame. competition2 <- data.frame(competition), where 'competition' is a 'dplyr' data frame with the following class structure.

[R] Bayes Factor

2017-07-06 Thread James Henson
Hello R Community, Subject: Bayes Factor A Bayesian ANOVA of the form: competitionBayesOut <- anovaBF(biomass ~ clipping, data = competition) Returns the following Error message: Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘compare’ for signature

Re: [R] Marg.fct function

2017-02-06 Thread James Henson
, Jeff Newmiller wrote: > It is not part of "R". You can dig through all of the packages that the > author mentions, or send an email to the author. > -- > Sent from my phone. Please excuse my brevity. > > On February 5, 2017 11:44:40 AM PST, James Henson wrote: >

[R] Marg.fct function

2017-02-05 Thread James Henson
Greetings R Community, An attempt to reproduce the results from code in the source below fails. R cannot find the function ‘Marg.fct’. An Internet search for the ‘Marg.fct’ function was not fruitful. I appreciate your help. Best regards, James F. Henson. R (and S-PLUS) Manual to Accompany Agres

Re: [R] confidence intervals for orthogonal contrasts

2016-12-02 Thread James Henson
27;t have HH, you can get it with > install.packages("HH") > > See the references in ?MMC to my book and paper. The second edition > of the book is now available. > > Rich > > On Thu, Dec 1, 2016 at 4:17 PM, James Henson wrote: >> Hi R users, >> Is th

[R] confidence intervals for orthogonal contrasts

2016-12-01 Thread James Henson
Hi R users, Is there a way to calculate a confidence interval for each contrast in a set of orthogonal contrasts? The ‘multcomp’ package will calculate a CIs at the 95% family-wise confidence level. But, these confidence intervals are extremely wide. Thanks for your help. Best regards, James ___

Re: [R] yuen function of the WRS2 package

2016-08-31 Thread James Henson
Thanks, The 'droplevels' statement works. Best regards, James Henson On Tue, Aug 30, 2016 at 5:34 PM, William Dunlap wrote: > yuen does not work when there unused levels in the factors given to it. > >> yuen(GoalsGame ~ League, tr=0.2, data = SpainGer) > Call: &

[R] yuen function of the WRS2 package

2016-08-30 Thread James Henson
Greetings R community, Here is a small but perplexing problem with the ‘yuen’ function in the ‘WRS2’ package. I begin with the ‘eurosoccer’ data frame from the ‘WRS2’ package. Then make a subset that contains only two Leagues Spain and Germany (subset data frame is ‘SpainGer’). The ‘yuen’ functio

Re: [R] Whether statistical background is must to learn R language

2016-05-31 Thread James Henson
Greetings Prasad, Here are some tutorials on statistics using R.Statistics and Actuarial Science – Carl James Schwarz http://people.stat.sfu.ca/~cschwarz/CourseNotes/ Statistics and Actuarial Science – Carl James Schwarz - Programs http://people.stat.sfu.ca/~cschwarz/Stat-650/Notes/MyPrograms

Re: [R] mixed models

2016-05-27 Thread James Henson
>> Please keep the mailing list in the loop by using reply-all. >>> >>> I don't think there is a requirement that the number of levels is equal, but >>> there may be problems if you don't have the minimum number of records >>> corresponding to each combina

Re: [R] mixed models

2016-05-27 Thread James Henson
nt from my phone. Please excuse my brevity. > > On May 25, 2016 2:26:54 PM PDT, James Henson wrote: >> >> Good afternoon Jeff, >> The sample sizes for levels of the factor "Irrigation" are not equal. If >> 'nlme' requires equal sample sizes this m

[R] mixed models

2016-05-25 Thread James Henson
Greetings R community, My aim is to analyze a mixed-effects model with temporal pseudo-replication (repeated measures on the same experimental unit) using ‘nlme’. However, my code returns the error message “Error in na.fail.default’, even though the data frame does not contain missing values. My

Re: [R] ggplot2

2016-04-12 Thread James Henson
m_bar(stat="identity", aes(fill=Treatment)) > > > best, > huzefa > > On Tue, Apr 12, 2016 at 1:02 PM, James Henson wrote: > > Dear R Community, > > > > Below is a problem with a simple ggplot2 graph. The code returns the > error > > message below. &

[R] ggplot2

2016-04-12 Thread James Henson
Dear R Community, Below is a problem with a simple ggplot2 graph. The code returns the error message below. Error: stat_count() must not be used with a y aesthetic. My code is below and the data is attached as a ‘text’ file. # Graph of the probabilities library(digest) library(DT) datatabl

Re: [R] installing packages

2016-03-30 Thread James Henson
On March 21, 2016 2:10:01 PM PDT, KMNanus wrote: >> >> Have you set your working directory to the “3.2” folder? >> Ken >> kmna...@gmail.com >> 914-450-0816 (tel) >> 347-730-4813 (fax) >> >> >> >> On Mar 21, 2016, at 5:07 PM, James Henso

[R] installing packages

2016-03-21 Thread James Henson
Dear R community, When I install or update a package, R prints the waring below. I go to the ‘downloaded_packages’ folder in the Temp file and manually move the new or updated package to the folder ‘3.2’. How can I instruct R to download new and updates packages into the ‘3.2’ folder? Warning

[R] package broom

2016-01-06 Thread James Henson
Dear R community My version is R version 3.2.3. The package "broom" appears to install, but it will not load. The error message is below. > library(broom) Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘mnormt’ Error: package

[R] contrasts among simple effects - 2

2015-10-13 Thread James Henson
Greetings R Community Apologize for previously sending a csv file. My goal is to make orthogonal contrasts among simple effects in analysis of repeated measures data. The SAS publication, on page 1224, shows how to make this type of contrasts in SAS. But, my search of books about repeated measu

[R] contrasts among simple effects

2015-10-13 Thread James Henson
Greetings R Community My goal is to make orthogonal contrasts among simple effects in analysis of repeated measures data. The SAS publication, on page 1224, shows how to make this type of contrasts in SAS. But, my search of books about repeated measures analysis using R, and on-line has not yiel

Re: [R] [FORGED] Re: Dunnett Test in 'multicomp' package

2015-06-05 Thread James Henson
Thanks. A useful tip for a long-time SAS user. James F. Henson On Fri, Jun 5, 2015 at 3:47 AM, Gerrit Eichner < gerrit.eich...@math.uni-giessen.de> wrote: > Hello, everyone, > > aside from Rolf's hint (and Richard's warning!) you could also consider > relevel(): > > viagraData$dose <- relevel( vi