search for: mn2

Displaying 7 results from an estimated 7 matches for "mn2".

Did you mean: m32
2012 Feb 13
2
Error in apply(x2, 1, diff) : dim(X) must have a positive length
...ause 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,mn4) + list(mnds=round(mns,3)) } > dif.mns(shoes) Error in apply(x2, 1, diff) : dim(X) must have a positive length -- View this message in context: http://r.789695.n4.nabble.com/Error-in-apply-x2-1-...
2009 Jul 15
1
Matrix multiplication precision
...uting the products. I am still having problems with the results. Here is how I am using it #Mn.mat<-(T.mat %*% Rz.mat %*% Q.mat %*% Rz.mat %*% T.mat) # I was doing this in one step which I have broken down into multiple steps as below. Mn1.mat<-matrix(as.numeric(T.mat %*% Rz.mat),nrow=4) Mn2.mat<-matrix(as.numeric(Mn1.mat %*% Q.mat),nrow=4) Mn3.mat<-matrix(as.numeric(Mn2.mat %*% Rz.mat),nrow=4) Mn.mat<-matrix(as.numeric( Mn3.mat %*% T.mat),nrow=4) For getting the inverse I am doing the following Mn.mat.inv<-qr.solve(Mn.mat) Will I run into precision problems when I do...
2009 Jan 26
0
why two diff. se in nlsList?
...8 38.48169 1.991990e-06 Qn2 42.87169 1.0932089 39.21638 2.583953e-06 Qn3 44.22800 1.0241029 43.18706 1.809264e-07 Qc1 36.42874 1.1941594 30.50576 1.140085e-05 Qc3 40.68373 1.2480923 32.59673 1.424635e-04 Qc2 39.81950 1.0167249 39.16447 2.692304e-06 Mn3 28.48286 1.0624246 26.80930 1.066434e-06 Mn2 32.12827 1.0174826 31.57624 3.488786e-06 Mn1 34.08482 1.3400596 25.43530 4.199333e-06 Mc2 13.55519 1.0506404 12.90184 4.385886e-06 Mc3 18.53506 0.8363371 22.16219 1.461563e-06 Mc1 21.78723 1.4113318 15.43735 5.756870e-06 > summary(fm1)$coef[,,1] Estimate Std. Error t value Pr(>...
2017 Oct 08
2
Manipulations with CO2 dataset on R
...tuck on these questions from 3 days, it would be really nice if someone could explain me the answers with the relative commands. thanks a lot in advance The following 7 questions are based on the CO2 dataset of R. 1) How many of the plants in CO2 are Mc2 for Plant? 2) How many are either Mc2 or Mn2? 3) How many are Quebec for Type and nonchilled for Treatment? 4) How many have a concentration (conc) of 350 or bigger? 5) How many have a concentration between 350 and 435 (inclusive)? 6) How many have a concentration between 300 and 450 (inclusive) and are nonchilled? 7)How many have an upt...
2007 Sep 11
2
Function to get a sequence of months
Hi all, I am looking for a function for following calculation. start.month = "July" end.month = "January" months = f(start.month, end.month, by=1) * f is the function that I am looking for. Actually I want to get months = c("July", "August",.............."January") If start.month = 6 and end.month = 1 then I could use (not properly) seq()
2008 Apr 14
5
Equivalent to a BY command in SAS
Hi, I'm very new to R and absolutely love it. Does anyone know how to use something in R that functions like a BY command in SAS? For example, let's say you have a variable x, and you want to see the mean. Easy... > mean(x) But what if you want to see the mean of x conditional on another discrete variable? My best attempts so far are something like... > mean(x, y_cat=1)
2020 Feb 27
2
[PATCH] Update the 5 year logo to 10 year logo
...--5MDTv-)%UBD|Q-$ojBn8&$0?)k?9ape=!`&)F=S)zdI zX|@ZU_qm1XkWJGXXWfobHaw8SX;!8F30_LeH++U!vl}*>l0?92u9kJ8-4kL+zP-EJ z#0X7;ZaPv7wlk~K-}4xi|224i;<YYaTIFuEoMP<cyz0l@_$+As&>e`}zugS?-rT4m z*VG6yWVyoWA#$xNp)aQj6&5)H-Kwg(*ugG)4n5OgCVyF+VXI`<L6a>xuk|+-`oZH; z52XPX>B5bSRFs^`mn2}I8c5T?fkxJsd01pi##Hcdr#<viQ}U&X_BQ~J+iil-U<}_N zR{1ud3!hz5uNJCVV)j-_z0k2@mi+LMCV%scrJrBp?%!V(NzL01-=Ilax{MMSs&CVv zSzMR@rzjR_AJAvlF#Gjh((_~Ka<A$mA@%iBP3K+vaRdkl*FEf;QOj!oOwvXd&!Y8Z ze}g4-A`LR_3YnUPRQ6%_!0k4go^~o7Uma)sWPRbgU_ZOpL!i-~ke0P`7!q98+FagH zncfS9zDw9odPjc-dEh|?!;PJ7vc&a...