Displaying 20 results from an estimated 32 matches for "tr2".
Did you mean:
tr
2005 Jun 24
1
lme4 extracting individual variance components
...t - 1 | group2) + (trtt -
1 | group1)
Data: d1
AIC BIC logLik MLdeviance REMLdeviance
1819.454 2003.915 -874.7269 1736.421 1749.454
Random effects:
Groups Name Variance Std.Dev. Corr
group1 trtt1/TR1 0.115094 0.33926
trtt1/TR2 0.338576 0.58187 0.177
trtt2/TR1 0.141726 0.37647 -0.002 -0.007
trtt2/TR2 0.327869 0.57260 -0.007 -0.002 0.321
group2 trtt1/TR1 0.026259 0.16205
trtt1/TR2 0.021771 0.14755 0.325
trtt2/TR1 0.025403 0.15938 0.898 0.062...
2007 Jul 13
3
Direction of panel plots in trellis graphics
Hi,
Using library(lattice), is there any way to tell xyplot to plot
panels top to bottom, then left to right (i.e. panels are appended
vertically, then horizontally). as.table changes the plot direction
from left-to-right then top-to-bottom, to right-to-left then bottom-
to-top, but that's not quite what I want to do.
Thanks
Yan
2012 Feb 13
2
Error in apply(x2, 1, diff) : dim(X) must have a positive length
Anyone knows hat might be the cause of this error? Thanks for any help!
>library(MASS)
> dif.mns = function(x2,tr1=.2,tr2=.3){
+ #generates four different 'means' using
+ #difference scores from x2, an n x 2 matrix
+ #for use w/ bootstrap comparisons
+ diffs = apply(x2,1,diff)
+ mn1=mean(diffs)
+ mn2=mean(diffs,tr=.2)
+ mn3=mean(diffs,tr=.3)
+ mn4=median(diffs)
+ mns=c(mn1,mn2,mn3,...
2006 Apr 04
1
generating LaTeX tables from Match output
...X1 <- matrix(rnorm(1000*5), ncol=5)
Y1 <- as.vector(rnorm(1000))
Tr1 <- c(rep(1,500),rep(0,500))
#estimate nearest neighbor, 1-1 matching, ATT
a <- Match(Y=Y1, X=X1, Tr=Tr1, M=1)
summary(a)
#make up some more data
X2 <- matrix(rnorm(1000*5), ncol=5)
Y2 <- as.vector(rnorm(1000))
Tr2 <- c(rep(1,500),rep(0,500))
b <- Match(Y=Y2, X=X2, Tr=Tr2, M=1)
summary(b)
I have tried the xtable and latex functions but have not been able to
get what I wanted. One thing you should know if you are unfamiliar
with Match is that it only generates *one* estimator. What I want to
do is tak...
2014 May 08
3
[LLVMdev] Small problem with the tail call elimination pass
...ode:
unsigned int fib(unsigned int n) {
return n <= 2 ? 1 : fib(n-1) + fib(n-2);
}
IR:
define i32 @_Z9fibj(i32 %n) #0 {
%1 = icmp ult i32 %n, 3
br i1 %1, label %tailrecurse._crit_edge, label %tailrecurse
tailrecurse: ; preds = %0, %tailrecurse
%n.tr2 = phi i32 [ %4, %tailrecurse ], [ %n, %0 ]
%accumulator.tr1 = phi i32 [ %5, %tailrecurse ], [ 1, %0 ]
%2 = add i32 %n.tr2, -1
%3 = tail call i32 @_Z9fibj(i32 %2)
%4 = add i32 %n.tr2, -2
%5 = add i32 %3, %accumulator.tr1
%6 = icmp ult i32 %4, 3
br i1 %6, label %tailrecurse._crit_edge,...
2002 Nov 27
6
"attrib +R myowndir" fails to write-protect my own dir
...ead only = No
inherit permissions = No
directory security mask = 0777
browseable = No
The packets exchanged very quickly between my WS and the server:
Win2K SP3 Client SuSE 8.1/samba 2.2.7 server
================================= ================================
Tr2 Rq Q_PATH_INFO, Path: Tr2 Rs Q_PATH_INFO
Tr2 Rq FIND_FIRST2, Pattern: \dir Tr2 Rs FIND_FIRST2, Files: dir
NT Create AndX Req, Path: \dir NT Create AndX Resp, FID: 0x2f70
Tr2 Rq SET_FILE_INFO, FID: 0x2f70 Tr2 Rs SET_FILE_INFO
Close Request, FID 0x270 Close Response...
2001 Jul 20
1
frames and formulas
I can build a tree at the command line using
tr <- tree(V4 ~ ., dat)
but I don't know how to build one inside a function - the following does
not work
foo <- function(dummy) {
tr <- tree(V4 ~ ., dummy)
}
tr2 <- foo(dat)
and produces the error
Error in model.frame.default(formula = V4 ~ ., data = dummy) :
Object "dummy" not found
I know the solution has something to do with terms, formulas, frames,
environments, etc., but I can't figure it out (despite having read sec
3.4-3.5 of...
2001 Mar 10
3
Problem With Model.Tables Function
I am using R for the first time in one of my classes. My students have
alerted me to a problem for which we have not found an answer. We find
that some means returned by the model.tables function are not correct when
missing data is present in analysis of variance problems. We have
duplicated the problem using R 1.2.0, 1.2.1, and 1.2.2 under Windows 98
and several distributions of Linux (Redhat
2007 Aug 06
1
data analysis
Dear all, I have a factorial design where the
response is an ordered categorical response.
treatment (two levels: 1 and 2)
time (four levels: 30, 60,90 and 120)
ordered response (0,1,2,3)
could someone suggest a correct analysis or some references?
Best regards
subject treatment time response
1 1 30 3
2 1 30 3
3 1 30 1
4 1 30
2007 Nov 12
0
Resid() and estimable() functions with lmer
...Estimate Std. Error t value
(Intercept) 12.8846 1.3028 9.890
infl.treat1 -0.4738 1.1819 -0.401
def.treat2 -3.5522 1.6022 -2.217
def.treat3 -2.1757 1.6461 -1.322
def.treat4 -2.1613 1.7003 -1.271
Correlation of Fixed Effects:
(Intr) infl.1 df.tr2 df.tr3
infl.treat1 -0.413
def.treat2 -0.616 0.013
def.treat3 -0.641 0.002 0.493
def.treat4 -0.638 0.028 0.469 0.524
#Coefficients#
mean.infl.treat0=c(1,0,1/4,1/4,1/4)
mean.infl.treat1=c(1,1,1/4,1/4,1/4)
mean.def.treat1=c(1,1/2,0,0,0)
mean.def.treat2=c(1,1/2,1,0,0)
mean.def.treat3=c(1,1/2...
2006 Apr 09
1
logistic regression model with non-integer weights
...nd normal cases, the logistic regression
found by glm is always much closer to the normal cases than for the
abnormal cases. In particular, the probability of abnormal is at most 0.4.
Coefficients:
Estimate Std. Error z value Pr(>|z|)
(Intercept) 0.7607 0.7196 1.057 0.2905
TR2 -1.4853 0.4328 -3.432 0.0006 ***
---
I would like to compensate for the fact that the a priori probability of
abnormal cases is so low. I have created a weight vector
> WEIGHT <- ABN
> WEIGHT[ ABN == TRUE ] <- 1 / na / 2
> WEIGHT[ ABN == FALSE ] <- 1 / nn / 2...
2004 Jul 06
1
questions about setMethod("Arith", ...)
...define new methods for "Arith"
setMethod("Arith", signature("track", "numeric"),
function(e1, e2){
e1 at x = callGeneric(e1 at x, e2)
e1
})
getMethods("/") # "/" for "distr" is lost
N2 <- N/3 # fails
(tr2 <- tr/3) # works, "but" still the "old" method
tr + 2 # works
## now a new method "+"
setMethod("+", signature("track", "numeric"),
function(e1, e2){ e1 at y = e1 at y+e2; e1 })
tr + 2 # works, "but" with the "...
2006 Oct 26
1
A faster way to calculate Trace?
...product of matrices **faster** when the matrices are really big. Unfortunately the matrices are not symmetric. If anybody know how to get the trace of it, please help me. An example is as below.
n <- 2500
a <- matrix(rnorm(n*n),n,n)
b <- matrix(rnorm(n*n),n,n)
tr1 <- sum(diag(a %*% b))
tr2 <- sum(diag(a %*% b %*% a %*% b))
Thanks,
Yongwan Chun
2008 May 20
1
[LLVMdev] Forward: Discussion about custom memory allocators for STL
On Sunday 18 May 2008 09:02, Gordon Henriksen wrote:
> As for the 340, for an highly replaceable library comprising 1% of our
> LOC to bloat the source file count in our tree by 20%—after using a
> script to extract a perfect transitive dependency closure—well, I was
> on the verge of tossing it overboard. I can't blame Chris for his
> reticence to add such nonsense to LLVM, as
2004 Jul 02
0
Problem locating stream files
...ple asterisk configuration where I intend to be redirected to the
voicemail whenever I dial 100 with my kphone SIP client. The problem is that asterisk can not find
the stream 'vm-theperson'. I have made a non-standard installation (since I am just testing), and
that file is located in /mnt/tr2/fake_root/installed/usr/local/var/lib/asterisk/sounds.
1. How can I tell asterisk where to look for the streams?
2. I have traced (with strace) all 6 threads created by asterisk to find out which directories it
is accessing to try to open the vm-theperson stream, but interestingly this system cal...
2011 Oct 01
2
Entering data into a multi-way array?
Hello: I am a novice R user, but I have been working my way through the
manuals / tutorials, ... I have R / Deducer up and running, and know the
basics.
I want to analyze a microarray (gene expression) dataset.
I need to input the data into R as a multidimensional (multi-way) array,
something on the order of
15,000 x 3 x 8 x 2 [genes x replicates x time points x treatments]
I've
2010 May 06
2
reading in file with different row length
Hi all,
I have a file, say, test.txt, which contains the following information.
I'm trying to read in the file and specifying the missing values as NA
so that each column has the same number of rows.
I've tried all sorts of manipulation but to no avail.
r1 r2 r3
1 3
2 3
3 2 3
4 2 3
5 2 3
6 2 3
7 2
8 2
9 2 3
The output should be
r1 r2 r3
1 NA 3
2 NA 3
3 2 3
4 2 3
5 2 3
6 2 3
7 2
2003 Apr 09
1
'Apparently' trouble with name spaces and Sweave...
...rbes, GAGurine, galaxies, gehan, genotype, geyser, gilgais, hills,
housing, immer, Insurance, leuk, lh, mammals, MASS.data.load, mcycle,
mdeaths, Melanoma, menarche, michelson, minn38, motors, muscle, newcomb,
nlschools, nottem, npk, npr1, oats, OME, painters, petrol, phones,
Pima.te, Pima.tr, Pima.tr2, quine, Rabbit, road, rock, rotifer, Rubber,
ships, shoes, shrimp, shuttle, Sitka, Sitka89, Skye, snails, SP500,
steam, stormer, survey, synth.te, synth.tr, topo, Traffic, UScereal,
UScrime, VA, waders, whiteside, wtloss
Error in library(MASS) : package/namespace load failed
Error in driver$runcode...
2019 Mar 03
0
Wine release 3.0.5
...glDebugMessageCallback to handle calling convention differences.
xaudio2: Use assembly wrapper to call OnVoiceProcessingPassStart callback.
Serge Gautherie (1):
jscript: Fix a MSVC-x64 warning about to_uint32().
Stefan Dösinger (5):
msvcp140: Implement _Temp_get.
msvcp120: Tr2::_Rename_wchar NULL ptr handling differs from tr2::_Rename.
msvcp140: Export _Rename.
msvcp140/tests: Test _Last_write_time and _Set_last_write_time.
ntdll: Avoid more race conditions in RtlDeregisterWaitEx.
Sven Baars (2):
dsound: Fix a memory leak (Valgrind).
gdiplu...
2018 Jul 20
0
Wine release 3.13
...: Implement vkGetDeviceQueue2.
Serge Gautherie (3):
windowscodecs: Fix an MSVC warning about get_decoder_info().
guiddef.h: REF* types do not depend on CINTERFACE.
shell32: Fix 2 MSVC warnings about flags.
Stefan Dösinger (3):
msvcp140: Implement _Temp_get.
msvcp120: Tr2::_Rename_wchar NULL ptr handling differs from tr2::_Rename.
msvcp140: Export _Rename.
Vincent Povirk (2):
mscoree: Use upgrade code to find installed Wine Mono version.
appwiz.cpl: Update Wine Mono to 4.7.3.
Zebediah Figura (5):
msi: Avoid starting the RPC server more than...