similar to: Please help a struggling student with data set-up for

Displaying 20 results from an estimated 2000 matches similar to: "Please help a struggling student with data set-up for"

2012 Oct 17
1
Please help a struggling student with data set-up for lmer crossed random effects
Hi all, I am just starting my first models in R and am having trouble with some of the basics. The main things at the moment are about setting up my data correctly. I have a repeated measures design-all participants complete 4 experimental conditions. I want to fit a linear mixed effects model with crossed random effects for subject and item. I have 4 conditions, 6 items per condition. Because
2011 Mar 10
2
Not sure how to handle hazard in my survival model
Hi R experts :) I'm trying to carry out a survival model on my data, but I am unsure of whether it's appropriate or if I should do something specific in regards to hazard. My data is time to death by predator where I have 8 prey and one predator in the setting. This means that two prey can't possibly die at the same time and I can't quite get my head around how to include this in
2017 Aug 23
0
Getting all possible combinations
Inline. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Aug 23, 2017 at 1:58 PM, peter dalgaard <pdalgd at gmail.com> wrote: > >> On 23 Aug 2017, at 20:51 , Ista Zahn <istazahn at gmail.com> wrote: >>
2017 Aug 23
2
Getting all possible combinations
> On 23 Aug 2017, at 20:51 , Ista Zahn <istazahn at gmail.com> wrote: > > On Wed, Aug 23, 2017 at 12:35 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote: >> ummm, Ista, it's 2^n. > > ummm yes ughhhh. > You didn't really say otherwise: sum(choose(n,0:n)) == 2^n by the binomial expansion of (1+1)^n (but you knew that) This points to a different
2016 Apr 25
0
Splitting Numerical Vector Into Chunks
Hi Is this http://stackoverflow.com/questions/2150138/how-to-parse-milliseconds-in-r what do you want? Cheers Petr > -----Original Message----- > From: Sidoti, Salvatore A. [mailto:sidoti.23 at buckeyemail.osu.edu] > Sent: Sunday, April 24, 2016 1:48 AM > To: PIKAL Petr <petr.pikal at precheza.cz>; William Dunlap > <wdunlap at tibco.com>; Ista Zahn <istazahn at
2016 Apr 21
0
installation problem on Ubuntu
Hi Paul, Please keep the list copied so that others might chime in with suggestions. I'm afraid "no success" is too vague to be useful. What did you do, and what errors did you encounter? Best, Ista On Thu, Apr 21, 2016 at 1:48 PM, Paul Tremblay <paulhtremblay at gmail.com> wrote: > Yes, I tried those instructions as well with no success. > > On Wed, Apr 20, 2016
2017 Aug 23
0
Getting all possible combinations
On Wed, Aug 23, 2017 at 12:35 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > ummm, Ista, it's 2^n. ummm yes ughhhh. My point is, if the number of groups is large, check it before hand. If you can check it without embarrassing yourself in public like I did that's even better. Best, Ista > > Cheers, > Bert > > > Bert Gunter > > "The trouble
2018 Feb 20
0
Take the maximum of every 12 columns
It looks like OP uses a data.frame, so in order to use matrixStats (I'm the author) one would have to pay the price to coerce to a matrix before using matrixStats::rowMaxs(). However, if it is that the original data could equally well live in a matrix, then matrixStats should be computational efficient for this task. (I've seen cases where an original matrix was turned into a data.frame
2017 Jul 06
0
Efficient swapping
Untested, but I expect that setting the levels to be the same across the two factors levels(tmp$R1) <- levels(tmp$R2) <- LETTERS[1:6] and proceeding as before should be fine. Best, Ista On Jul 6, 2017 6:54 PM, "Gang Chen" <gangchen6 at gmail.com> wrote: Thanks a lot, Ista! I really appreciate it. How about a slightly different case as the following: set.seed(1) (tmp
2017 Dec 07
0
Remove
Thank you Ista! Worked fine. On Wed, Dec 6, 2017 at 5:59 PM, Ista Zahn <istazahn at gmail.com> wrote: > Hi Ashta, > > There are many ways to do it. Here is one: > > vars <- sapply(split(DM$x, DM$GR), var) > DM[DM$GR %in% names(vars[vars > 0]), ] > > Best > Ista > > On Wed, Dec 6, 2017 at 6:58 PM, Ashta <sewashm at gmail.com> wrote: >> Thank
2010 Oct 29
4
Lineage Freya Engine.dll failed to initialise
Hello! I'm kind of new to Linux so I'm in learning process. The thing keeping me tied to Windows is that I can't play the same games on Linux so I have been dual-booting it on my laptop. Recently I found out about Wine and decided to try it out. I decided to install Lineage 2 using Wine. Before doing anything wanted to make sure that I know exactly what to do and how so I searched
2017 Nov 09
1
Sharing an R installation via NFS on ubuntu cluster
I can install R with sudo apt-get update sudo apt-get install r-base this is not my problem, and indeed, not my question. my question was how could I share the resulting R installation over NFS? Do I have to export every location where apt-get installs a component or can I force apt-get to place the installation in a certain location? On 8 November 2017 at 17:37, Ista Zahn <istazahn at
2017 Aug 23
3
Getting all possible combinations
ummm, Ista, it's 2^n. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Aug 23, 2017 at 8:52 AM, Ista Zahn <istazahn at gmail.com> wrote: > On Wed, Aug 23, 2017 at 11:33 AM, Christofer Bogaso >
2017 Jul 05
1
Help with reshape/reshape2 needed
Hi Tom, Or perhaps: #assume the data frame is named "tadf" library(prettyR) stretch_df(tadf,1,2) Jim On Thu, Jul 6, 2017 at 6:50 AM, Ista Zahn <istazahn at gmail.com> wrote: > The reason it doesn't work easily with reshape/reshape2 is that the > order of the rows is not determined. Your answer could be > > 1957 1958 ... 1985 1986 >
2017 Dec 09
1
Remove
Hello, Try the following. keep <- list(A = c(15, 30), B = c(40, 50), C = c(60, 75)) sp <- split(DM$x, DM$GR) inx <- unlist(lapply(seq_along(sp), function(i) keep[[i]][1] <= sp[[i]] & sp[[i]] <= keep[[i]][2])) DM[inx, ] # GR x y #1 A 25 125 #2 A 23 135 #5 B 45 321 #6 B 47 512 #9 C 61 521 #10 C 68 235 Hope this helps, Rui Barradas On 12/9/2017 12:48 AM, Ashta
2017 Jun 24
1
v3.4.0-2 incompatible with gcc 7.1
Thanks Ista, that's good to know. Did you install from pacman? Chris On Fri, 23 Jun 2017 at 20:35 Ista Zahn <istazahn at gmail.com> wrote: > FWIW, I don't have any problems with R on Arch Linux. > > On Jun 23, 2017 1:32 PM, "Chris Cole" <chris.c.1221 at gmail.com> wrote: > >> Thank you for correcting my misunderstandings, Professor. Compiling from
2017 Dec 14
0
Errors in reading in txt files
In addition to which, I would recommend df <- read.table("DATAM", header = TRUE, fill = TRUE, stringsAsFactors=FALSE) and then converting the Time column to POSIXct date-time values using as.POSIXct() specifying the format using formatting codes found in ?strptime because the times are not in the POSIXct default format. This example might indicate the idea: >
2017 Dec 09
1
Remove
library(dplyr) DM <- read.table( text='GR x y A 25 125 A 23 135 . . . ) DM %>% filter((GR == "A" & (x >= 15) & (x <= 30)) | (GR == "B" & (x >= 40) & (x <= 50)) | (GR == "C" & (x >= 60) & (x <= 75))) On Fri, Dec 8, 2017 at 4:48 PM, Ashta <sewashm at gmail.com>
2018 Feb 17
0
writeLines argument useBytes = TRUE still making conversions
>From my understanding, translation is implied in this line of ?file (from the Encoding section): The encoding of the input/output stream of a connection can be specified by name in the same way as it would be given to iconv: see that help page for how to find out what encoding names are recognized on your platform. Additionally, "" and "native.enc" both
2017 Sep 02
1
readLines() segfaults on large file & question on how to work around
Thank you for your suggestion. Unfortunately, while R doesn't segfault calling readr::read_file() on the test file I described, I get the error message: Error in read_file_(ds, locale) : negative length vectors are not allowed Jen On Sat, Sep 2, 2017 at 1:38 PM, Ista Zahn <istazahn at gmail.com> wrote: > As s work-around I suggest readr::read_file. > > --Ista > > >