Re: [R] Confirmatory Factor Analysis

2021-11-26 Thread Pat Malone via R-help
t; > > > *AbouEl-Makarim Aboueissa, PhD* > > > > *Professor, Statistics and Data Science* > > *Graduate Coordinator* > > > > *Department of Mathematics and Statistics* > > *University of Southern Maine* > > _

[R] R cases on predictive maintenance

2016-04-04 Thread Norman Pat
Hi Team, Can you please suggest me some good cases where we can use R programming to tackle predictive maintenance problems Many thanks [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,

Re: [R] R how to find outliers and zero mean columns?

2016-03-30 Thread Norman Pat
ooking for, you > can do something like: > > NA9<-X==9 > > and then "remove" them by replacing those values with NA: > > X[NA9]<-NA > > Be aware that all these hackles (diminutive of hacks) are pretty > specific to this example. Also rememb

Re: [R] R how to find outliers and zero mean columns?

2016-03-30 Thread Norman Pat
wrote: > > > On Mar 30, 2016, at 3:56 PM, Norman Pat wrote: > > > > Hi team > > > > I am new to R so please help me to do this task. > > > > Please find the attached data sample. > > No. Nothing attached. Please read the Rhelp Info page an

[R] R how to find outliers and zero mean columns?

2016-03-30 Thread Norman Pat
Hi team I am new to R so please help me to do this task. Please find the attached data sample. But in the original data frame I have 350 features and 40 observations. I need to carryout these tasks. 1. How to Identify features (names) that have all zeros? 2. How to remove features that ha

[R] Data frame with unequal lines per case

2014-07-03 Thread Pat Jackson
Thank you for a referral to apps or a suggested strategy to deal with this. Pat J. Header: Groupname number rate1 rate2 males females white nonwhite Data: Blue 1 3 1 1 0 0 1 Blue 2 2 3 1 0 1 0 Orange 1 4 4 0 1 1 0 Yellow 1 3 2 1 0 1 0 Yellow 2 5 2 0 1 0 1 Yellow 3 4 3 1 0 0 1 Yellow 4 4 2 1 0

Re: [R] Average value in a particular range of a matrix

2014-06-12 Thread Pat-74100
04:26 -0700 > From: smartpink...@yahoo.com > Subject: Re: [R] Average value in a particular range of a matrix > To: leonardsqual...@hotmail.com > > Hi Pat, > Is it 1-100, 101-200, 201-300,.. or just the way you described? > A.K. > > > > > On Wednesday, June 11,

[R] Average value in a particular range of a matrix

2014-06-11 Thread Pat-74100
Hi I have a matrix with values of size 1*500 i have to find the avg value of first 1 to 100 ,avg value of 100 - 200 and so on up to 400-500. is there any function to find the average of 1 -100 and 100 - 200, 200 - 300,300 - 400,400 - 500 ?? Thanks

Re: [R] lmPerm p-values and multiple testing

2012-11-03 Thread Pat
Even you used perm="Exact", the maximum observations allowed is only 10. If data exceeds this, perm="Prob" is used instead of "Exact". So, the p-values are always changed. The Porb method will approximate the permutation distribution by randomly exchanging pairs of Y elements. -- View this mes

[R] Overall model significance for poisson GLM

2012-04-09 Thread Pat Wilkins
been using an analysis of deviance table to check a model against the null model with the intercept as the only predictor. Any advice on other methods to obtain the proper p-value would be appreciated. Thanks, Pat [[alternative HTML version deleted

[R] how to transform a data file

2011-11-28 Thread pat j
Hello R people, I have a data file with 101 numeric variables: one variable called IDN (the individual's unique id number, which I need to retain, and which ranges from 1000 to 1320; some numbers are obviously skipped), and V1 to V100 (each has a value of 0 or 1; these 100 variables represent sequ

[R] Ruby Koans an amazing platform for teaching programming. Would this work with R?

2011-05-05 Thread Pat Schmitz
For those not familiar Ruby Koans is a fantastic platform for teaching many of the basics of programming in the Ruby language. It uses unit tests written for methods each of which describe a component of the Ruby programming language. http://rubykoans.com/ The koans platform has become popular e

[R] Trouble variable scoping a function writing with get()

2011-01-26 Thread Pat Schmitz
t. I obviously am not so clear on variable scoping, and ?get really doesn't clear up my confusion. I am sure that there are better, more appropriate ways to write a function... Please enlighten me, Pat # Example code dat <- expand.grid(a = factor(c("a", "b")), b=1:10)

[R] Question about a perceived irregularity in R syntax

2010-07-22 Thread Pat Schmitz
A"] <- 1 #Why does this fails to work, dat$Value[dat$Value %in% NA] <- 1 #While this does work? #Particularly when str() results in an equivalent class dat <- data.frame(index = 1:10, Value = c(1:4, NA, 6, NA, 8:10)) str(dat$Value[dat$Value %in% NA]) str(dat$Value[dat$Value == "

[R] strip.custom with strip on left for three conditioning variables

2010-03-31 Thread Pat Schmitz
I want to use a strip.custom as with useOuterStrips for three conditioning variables. useOuterStrips restricts this to only two conditioning variables, and I cannot figure out how to write strip.custom properly to do this. library(lattice) mtcars$HP <- equal.count(mtcars$hp) #with two factors x2

Re: [R] xyplot, overlay two variables on one plot with group factors

2010-02-14 Thread Pat Schmitz
elt(dat2, id.vars = c('x', 'grp')) > Dat3 <- rbind(Dat, Dat2) # concatenate the two data frames > Dat3$gv <- with(Dat3, paste(variable, grp, sep = "")) # combine factors > > xyplot(value ~ x, data = Dat3, groups = gv, type = "l") > > Ther

[R] xyplot, overlay two variables on one plot with group factors

2010-02-14 Thread Pat Schmitz
All I want to overlay two variables on the same plot following their appropriate grouping. I have attempted to use subscripting in panel with panel.xyplot, but I can't get the grouping to follow into the panel...here is an example... dat<-data.frame( y= log(1:10), y2=10:19, x=1:10, grp = as.fa

Re: [R] Label individual points in lattice by and ID

2009-12-07 Thread Pat Schmitz
subscripts]) }) Pat On Mon, Dec 7, 2009 at 3:18 AM, Felix Andrews wrote: > If you want to plot each point as the text of its ID, use a panel function: > panel = function(x, y, groups, subscripts, ...) panel.text(x, y, > groups[subscripts]) > > If you want to add labels interac

Re: [R] Label individual points in lattice by and ID

2009-12-06 Thread Pat Schmitz
t;a","b") f2<-c("x","y") dat<-expand.grid(x=x, y=y, f1=f1, f2=f2) dat$ID <- 1:dim(dat)[1] xyplot(y~x | f1 + f2, groups=ID,dat) xyplot(y~x | f1 + f2, groups=ID,auto.key=TRUE,dat) # more accurate rep of problem with key Thanks Pat On Sun, Dec 6, 2009 at

[R] Label individual points in lattice by and ID

2009-12-06 Thread Pat Schmitz
t;x","y") dat<-expand.grid(x=x, y=y, id=ID, f1=f1, f2=f2) xyplot(y~x | f1 + f2, dat) Thanks Pat -- Patrick Schmitz Graduate Student Plant Biology 1206 West Gregory Drive RM 1500 [[alternative HTML version deleted]] __ R-hel

[R] Can You Recommend Books for Linear Mixed Models in R

2009-10-01 Thread Pat Schmitz
not discovered, that might be more effective? Thanks Pat -- Patrick Schmitz Graduate Student Plant Biology 1206 West Gregory Drive RM 1500 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/li

Re: [R] Applying Logical statement to DateTime string as factor

2009-08-18 Thread Pat Schmitz
response very much. Pat On Tue, Aug 18, 2009 at 5:18 AM, Gabor Grothendieck wrote: > Try this: > > > Lines <- '"1","30 Jun 2009 18:14:59" > "2","02 Jul 2009 07:33:37" > "3","06 Jul 2009 08:22:35" > "

[R] Applying Logical statement to DateTime string as factor

2009-08-18 Thread Pat Schmitz
5" "4","06 Jul 2009 19:25:50" "5","08 Jul 2009 08:41:48" "6","10 Jul 2009 07:31:39" "7","10 Jul 2009 19:59:25" "8","13 Jul 2009 07:49:18" "9","13 Jul 2009 18:52:52" "10&qu

[R] What is the best method to produce means by categorical factors?

2009-07-30 Thread Pat Schmitz
I am attempting to replicate some of my experience from SAS in R and assume there are best methods for using a combination of summary(), subset, and which() to produce a subset of mean values by categorical or ordinal factors. within sas I would write proc means mean data=dataset; class factor1 f

Re: [R] problem with caretNWS on linux

2008-05-09 Thread Pat Shields
On closer inspection of your specs, you might want to try upgrading your Twisted install. I just checked and am pretty sure that the twistd version is sync'd with the Twisted version. NWS requires Twisted >= 2.1. Pat Peter Tait wrote: Hi Pat, thank you for the response. Yes I am r

[R] Odd time conversion glitch

2007-12-27 Thread Pat Carroll
a length mismatch error. Can anyone help diagnose this, or work around it? Many thanks, ~Pat Carroll. > Dataset$DateFilled [1] "10/20/2005" "11/4/2005" "11/18/2005" "12/2/2005" "4/3/2006" "6/5/2006" "7/14/2006"

[R] RODBC problem: sqlSave not working after an update

2007-10-22 Thread Pat Carroll
ty. There is a long pause between entering the command and the error message printing, so some processing is happening. I couldn't find anything using "sqlSave","RODBC",and "Access" recently in the archives search. Anybody understand this error message, or why