Displaying 20 results from an estimated 2000 matches similar to: "If find x, then y, else do nothing"
2011 Jul 27
1
Hidden Markov Models in R
R Community -
I am attempting to fit a model as described in Hampton, Bossaerts, and
O'doherty (J. Neuroscience) 2006. They use a bayesian hidden markov model
to model the Reversal Learning data. I have tried using HMM and depmixS4
with no success. My data is a Reversal Learning Task in which there are 3
sets of patterns over 3 blocks. The participant receives incorrect or
correct
2011 Aug 22
1
Counting Elements Conditionally
R -
I have 3 variables with data below. Variable "Rev" is a vector that changes
from 1 to 2, 2 to 3, etc.... Variable "FF" is a binary variable with 1's
and 0's. Variable "bin" is a different binary variable with 1's and 0's.
I want to calculate the number of elements:
1. Starting with the first element where Rev switches (i.e. 1 to 2)
2. The
2011 Jun 28
2
Loop through each subject
R help -
I am attempting to write a script that has multiple subjects in 1 data file.
Each subject has multiple rows with columns as variables. Here is my code,
I am having problem executing it on each unique subject id (dat$Subject).
getwd()
setwd("/Users/edwardpatzelt/Desktop/Neuroimaging/MERIT/SRRT/merge")
dat <- read.table("test2.txt", header = TRUE, na.strings
2012 Mar 05
2
Running Total
I'm am trying to create a vector that has a running total that adds each
time a 1 occurs. here's the code and data
c(1L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 0L, 1L, 0L, 1L, 1L, 1L, 1L,
1L, 0L, 1L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L,
0L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 0L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 0L, 1L, 1L, 1L, 1L, 0L,
1L, 1L, 1L, 1L, 1L,
2011 Nov 16
1
Cubic Gradient Descent Package
R -
Does anyone know of a cubic gradient descent package? I found grad.desc()
but that only allows for a 2d function. I have 3 free parameters and thus
am looking for a 3d function.
Thank you,
--
Edward H. Patzelt
Research Assistant – TRiCAM Lab
University of Minnesota – Psychology/Psychiatry
VA Medical Center
S355 Elliot Hall: 612-626-0072
www.psych.umn.edu/research/tricam
[[alternative
2012 Oct 19
2
Axis Breaks with ggplot2
R-help -
I'm trying to create axis breaks similar to this :
http://www.r-bloggers.com/wp-content/uploads/2010/08/bar-chart-natural-axis-split1.png
.
Is there a way to do this in R? Here's my code thus far:
structure(list(condition = structure(c(2L, 1L, 3L), .Label = c("con",
"exp", "unedit"), class = "factor"), trial.avg = c(4.04583333333333,
2011 Aug 15
0
Indexing Permutation Values
R-help -
This code iterates over a function with 2 free parameters to find a list of
values (which are the number of incorrect predictions for a computational
model). I want to find the values of i,e when there is the minimum number
of incorrect predictions. In other words, the value of "i" and "e" when
variable "thesum" is at the lowest possible number. The
2012 Oct 31
2
Aggregate Table Data into Cell Frequencies
R-help -
I have this set of aggregated tables (sample data below via dput()). And I
would like to have delayValue as the column variables with the "temp"
(temp1, temp2, temp3) values as the row variables. However I would like to
have the temp variables *aggregated into single rows* so that I have the
frequency ("Freq" | counts) of each time each "delayValue" occurs
2016 Apr 22
1
Unique Ordering
Hi R-Help,
data at bottom
I've been struggling with a problem where I need to order based on 1) the
Frequency "Freq" and 2) keeping each group of 3 of the same type together
"Var2" but I want across all groups it to go "high to low" based on the
earn factor.
Thank you!
structure(list(Var1 = structure(c(1L, 3L, 2L, 1L, 2L, 3L, 1L,
3L, 2L, 3L, 1L, 2L, 3L, 1L,
2011 Nov 15
2
[LLVMdev] Pass options to the linker
Hi all,
I'm trying to use the PPL (Parma Polyhedra Library,
bugseng.com/products/ppl) in one of my LLVM passes getting the error:
> Error opening
> '/home/jorge/SvnReps/Systems/llvm/build/Debug+Asserts/lib/MyAnalysis.so':
> /home/jorge/SvnReps/Systems/llvm/build/Debug+Asserts/lib/MyAnalysis.so:
> undefined symbol: _ZNK23Parma_Polyhedra_Library13PIP_Tree_Node2OKEv
>
2013 Oct 10
4
- problem gcc with yum
hi all,
today, I have this problem:
# yum install gcc
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: ftp.hosteurope.de
* epel: mirror.de.leaseweb.net
* extras: ftp.hosteurope.de
* updates: ftp.hosteurope.de
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-3.el6 will be installed
2011 Nov 15
0
[LLVMdev] Pass options to the linker
Hi Jorge,
> I'm trying to use the PPL (Parma Polyhedra Library,
> bugseng.com/products/ppl) in one of my LLVM passes getting the error:
>
>> Error opening
>> '/home/jorge/SvnReps/Systems/llvm/build/Debug+Asserts/lib/MyAnalysis.so':
>> /home/jorge/SvnReps/Systems/llvm/build/Debug+Asserts/lib/MyAnalysis.so:
>> undefined symbol:
2011 Nov 15
1
[LLVMdev] Pass options to the linker
On Tuesday, November 15, 2011 at 10:11:25 (+0100), Duncan Sands wrote:
>> Hi Jorge,
>>
>> > I'm trying to use the PPL (Parma Polyhedra Library,
>> > bugseng.com/products/ppl) in one of my LLVM passes getting the error:
>> >
>> >> Error opening
>> >> '/home/jorge/SvnReps/Systems/llvm/build/Debug+Asserts/lib/MyAnalysis.so':
2006 Sep 05
2
USB key: CBIOS line printed, nothing else
Here's an interesting problem, and the first partial failure I've seen
when booting USB keys.
I've installed a bootable Knoppix "CD" image to my USB key, and posted a
writeup of my installation method here:
http://knoppix.net/forum/viewtopic.php?t=25402
Up until now, I've always had one of:
100% success (it fully boots)
100% failure (BIOS fails to recognize the USB
2013 Jul 11
1
Can't install gcc
Hi, I'm having this odd problem with being unable to install gcc, this is
what I tried
and what I'm getting as an error:
$ sudo yum install gcc.x86_64
Loaded plugins: security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 0:4.4.6-4.el6 will be installed
--> Processing Dependency: cpp = 4.4.6-4.el6 for package:
2012 Jul 15
3
[LLVMdev] Compiling llvm and Clang on Linux
In order to isolate the problem I am now running on a machine whose only
installation of gcc/g++ is gcc44, g++44
For this installation I am getting the following error:
COMPILE:
clang_linux/asan-i386/i386: /gpfs/haifa-p4/00/pincette/sitvanit/LLVM/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc
/.../sitvanit/LLVM/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:19:10:
fatal error:
2007 Mar 19
1
Installing Wine 0.9.32; Flex error?
Hi there,
I'm still trying to install Wine 0.9.32
./configure -> goes well
make depend > goes well
make gets following errors;
flex -t ppl.l >ppl.yy.c || (rm -f ppl.yy.c && exit 1)
flex: fatal internal error, exec failed
Broken Pipe
*** Error code 1
make: Fatal error: Command failed for target `ppl.yy.c'
Current working directory /usr/home/ed/wine-0.9.32/libs/wpp
***
2004 Dec 08
4
Guide to Cisco 79xx
Anybody have a guide to the Cisco 79xx phones? One that I can give the 7 or
8 ppl in my office so that they can stop asking me questions. I was going to
type up a basic guide but then decided I don't want to reinvent the wheel,
one of you may already have one. I tried to use Cisco's guide but it's for
their own protocol, a lot of options are different or rearranged.
I need a basic
2010 Dec 09
1
survival: ridge log-likelihood workaround
Dear all,
I need to calculate likelihood ratio test for ridge regression. In February I have reported a bug where coxph returns unpenalized log-likelihood for final beta estimates for ridge coxph regression. In high-dimensional settings ridge regression models usually fail for lower values of lambda. As the result of it, in such settings the ridge regressions have higher values of lambda (e.g.
2012 Jul 15
0
[LLVMdev] Compiling llvm and Clang on Linux
Ok, I got. You should install libstdc++44-devel, too.
Please try to install gcc44-c++ and libstdc++44-devel.
Note: gcc44-c++ depends on gcc44, but gcc44-c++ and libstdc++44-devel
are independent each other, at least on my host, CentOS5.
...Takumi
2012/7/15 Sitvanit Ruah <RUAH at il.ibm.com>:
> In order to isolate the problem I am now running on a machine whose only
> installation