Displaying 1 result from an estimated 1 matches for "datamini".
Did you mean:
datamin
2012 Jan 22
1
How to construct a formula
...model depending
on the result of a previous test (anova) in a programatic way. I could
use hard coded if statements as in the example below, but I want to be
able to do this in a more programatic way. I hope the code below will
show what I am trying to do:
Current code:
data=read.csv("dataMini.csv", header=TRUE, sep=",", dec=".")
colnames(data)
library(nlme)
if(weight_significant) {
if(gender_significant) {
if(weight_gender_interaction_significant) {
model=lme(test_variable~Genotype + Weight + Gender +
Weight*Gender, random=~1|Assay.D...