# NOT RUN {
data(example.data)
## Run single.point analysis for all variants in genodata (default):
out <- single.point(trait ~ age + sex, phenodata, genodata, kin)
## Run single.point analysis for regions defined in snpdata$gene and with
## null model parameters obtained in the first run:
out <- single.point(trait ~ age + sex, phenodata, genodata, kin,
out$nullmod, regions = snpdata$gene)
## Run single.point analysis parallelized on two cores (this will require
## 'foreach' and 'doParallel' R-packages installed and
## cores available):
out <- single.point(trait ~ age + sex, phenodata, genodata, kin,
out$nullmod, ncores = 2)
## Run single.point analysis with genotypes in PLINK binary data format:
bedFile <- system.file("testfiles/sample.bed",
package = "FREGAT")
phe <- data.frame(trait = rnorm(120))
out <- single.point(trait, phe, bedFile)
# }
Run the code above in your browser using DataLab