[R] Fitted values problem

2015-07-19 Thread B Jessop
r variable. Some might recognize the above models as essentially estimating weight at length or condition in animals, in this case fish. Thanks for any assistance. Regards, B. Jessop [[alternative HTML version deleted]] _

[R] Extracting case values from ancova adjusted means

2015-09-08 Thread B Jessop
ed only 5 places in Excel. Thanks for any assistance in how to extract the case values used to create the adjusted group means from an ANCOVA by the "effects" package such that the mean of the case values for a group equals the adjusted mean for that group. Regards, B.

[R] Problem solved

2015-09-13 Thread B Jessop
Further to my posting re: extracting case values from ancova adjusted means, I have solved the problem. Regards, Brian Jessop [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Help on reshape2 data frame rearrangement

2011-08-07 Thread B Jessop
Dear help list: I am trying to reshape a data frame from long to wide format and with a reduced variable list using reshape2. The original data frame format is: Site Obs_no LengthSite 1 Obs 1 10Site 1 Obs 2 13Site 1 Obs 3 14.Site 2 Obs 1 5Site 2 O

[R] FW: Help on reshape2 data frame rearrangement

2011-08-08 Thread B Jessop
ing service). The email you sent is nearly > impossible to parse because this is a plain text list (as noted in the > posting guide) and your html formatting is utterly lost. > > Josh > > On Sun, Aug 7, 2011 at 6:19 PM, B Jessop wrote: > > > > > > Dear help list:

[R] Renaming levels of a factor in a dataframe

2011-08-14 Thread B Jessop
Dear Helplist: I am trying, unsuccessfully, to rename levels of a factor in a dataframe. The dataframe consists of two factor variables and one numeric variable as follows: Factor Site has 2 levels AB and DE, factor Fish has 30 levels, 15 associated with each Site e.g. 1-1, 1-2,.2-1, 2

[R] FW: Renaming levels of a factor in a dataframe

2011-08-15 Thread B Jessop
Tyler, Tried your solution: levels (Data1$Site <- list(Fw = c("AB"), Est = c("DE"))) but still got a NULL response to str(Data1) and an alternating list of Fw, Est, Fw, Est under Site when looked at in the Data editor in R console. The use of the "levels" function would seem to be appro

[R] FW: FW: Renaming levels of a factor in a dataframe

2011-08-15 Thread B Jessop
Tyler, My apology. It does help to type correctly and eliminate unnecessary spaces in commands. The following does work correctly: levels(Data1$Site) <- list(Fw = c("AB"), Est = c("DE")) Thanks very much, BJ > From: deel...@hotmail.com >

[R] Selecting subset of factor levels

2011-08-18 Thread B Jessop
Dear r-help, I would like to select a subset of levels from a factor variable in a data frame and return a data frame. The data set consists of 3 variables, 2 of which are factors (Site, Fish) and one numeric (Datavalue) as follows: Site Fish Datavalue AB 2-12.3 AB

[R] Update packages problem

2011-09-06 Thread B Jessop
R-help, I recently updated R from 2.13.0 to 2.13.1 (32-bit Windows version) and now have a problem updating packages. I am running Windows 7 as operating system. As the FAQ suggests, I uninstalled 2.13.0 before installing 2.13.1. On first opening R, I ran "update.packages(checkBuilt=TRUE,

[R] Creating composite factor and changing format from character to factor

2011-07-16 Thread B Jessop
l.G.mct, test = adjusted(type = "single-step")). Any suggestions as to how to create a composite factor variable in the dataframe that would permit execution of the analysis code would be much appreciated. I am using R version 2.13.0 with packages lme4 and multcomp loaded. Regar

[R] Multiple comparison test on selected contrasts

2011-07-17 Thread B Jessop
= adjusted(summarytype = "single-step")) Clearly, this approach is incorrect (and I have tried others). How can I introduce the selected set of contrasts into the mct? Thanks for any help provided. Regards,B. Jessop [[alternative HTML vers

Re: [R] Multiple comparison test on selected contrasts

2011-07-19 Thread B Jessop
Dear Help-list, I have solved the problem by simply deleting the erroneous "0" in the "CR core - CR EC" contrast and deleting the unnecessary command "test=adjusted(summarytype = "single-step")". Regards,B. Jessop > From: deel...@hotmail.com >

[R] LDA cutoff value

2011-09-23 Thread B Jessop
Hello, I have run a linear discriminant analysis for the simple 2 group case using the MASS package lda() function. With priors fixed at 0.5 and unequal n for each group, the output basically provides the group means and the LD1 value. There is no automatic output of the cutoff (decision b