if i were to have a block size of 4 people and i want to assign a treatment
combination to the entire block, there would be 16 different treatment
combinations (, TTTP, TTPP, PTTP, etc.)
i am trying to get all 16 permutations and i am able to use this code below.
drugs=c('P','T');
thank you both! that worked!
--
View this message in context:
http://r.789695.n4.nabble.com/expand-grip-for-permutations-tp4648067p4648076.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
Hello all,
So I am using the (formula entry) method for randomForests:
randomForest(y~x1+x2+...+x39+x40,data=xxx,...) but the issue is that some of
the items in that package dont take a formula entry - you have to explicitly
state the y and x vector:
Hello all, I what to print the banner plot that is output from the mona
method in the cluster package but the problem is I dont want to print all
that red ink. Here is an example:
data(animals)
ma - mona(animals)
ma
## Plot similar to Figure 10 in Struyf et al (1996)
plot(ma)
I can change the
Hello all-
Lets say I have my dependent variable Y_ij and a time varying covariate
X_ij. I want to formulate some regression model to check if X_ij is
dependent on X_i1,X_i2,,X_i(j-1) and Y_i1,Y_i2,,Y_i(j-1). I want to
test no dependence on the Y component.
I'm thinking a simple linear
Hi all-
this seems to be simple to figure out but since im new to writing functions
I dont know what is happening. Here is my code along with the error I am
receiving:
semivario=function(data,ids,times,resids){
id=unique(data$ids)
index=combinations(length(data$times[data$ids==id[1]]),2)
@Thierry-
I am writing my own semivariogram code since I could not find a pre-made
function that did what I need it do. The code in the function correctly
works but I not sure how to get the function itself to work. In other words
if I fill in the commands (hope,id,sctime,scResid) by hand then
Hi everyone I dont know how to code in SAS but I do know how to code in R.
Can someone please be kind enough to translate this into R code for me:
proc mixed data = small method = reml;
class id day;
model weight = day/ solution ddfm = bw;
repeated day/ subject=id type = unstructured;
run;
can someone please tell me how modify the make.link function
i want to update the function with this code but every time i save it R
never keeps my new version. i have tried to unbind first and then assign. i
also tried the fixInNamespace but that doesnt work either. can someone
please tell me
can you please say specifically how to modify the make.link function
--
View this message in context:
http://r.789695.n4.nabble.com/glm-binomial-loglog-NOT-cloglog-link-tp849370p2135909.html
Sent from the R help mailing list archive at Nabble.com.
__
10 matches
Mail list logo