亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? extract.r

?? 做主成分回歸和偏最小二乘回歸
?? R
字號:
### extract.R:  Extraction functions### $Id: extract.R 99 2006-10-04 10:54:35Z bhm $## coef.mvr: Extract the base variable regression coefficients from## an mvr object.coef.mvr <- function(object, ncomp = object$ncomp, comps, intercept = FALSE,                     ...){    if (missing(comps) || is.null(comps)) {        ## Cumulative coefficients:        B <- object$coefficients[,,ncomp, drop=FALSE]        if (intercept == TRUE) {      # Intercept has only meaning for                                      # cumulative coefficients            dB <- dim(B)            dB[1] <- dB[1] + 1            dnB <- dimnames(B)            dnB[[1]] <- c("(Intercept)", dnB[[1]])            BInt <- array(dim = dB, dimnames = dnB)            BInt[-1,,] <- B            for (i in seq(along = ncomp))                BInt[1,,i] <- object$Ymeans - object$Xmeans %*% B[,,i]            B <- BInt        }    } else {        ## Individual coefficients:        B <- object$coefficients[,,comps, drop=FALSE]        g1 <- which(comps > 1)        ## Indiv. coef. must be calculated since object$coefficients is        ## cumulative coefs.        B[,,g1] <- B[,,g1, drop=FALSE] -            object$coefficients[,,comps[g1] - 1, drop=FALSE]        dimnames(B)[[3]] <- paste("Comp", comps)    }    return(B)}## fitted.mvr: Extract the fitted values.  It is needed because the case## na.action == "na.exclude" must be treated differently from what is done## in fitted.default.fitted.mvr <- function(object, ...) {    if (inherits(object$na.action, "exclude")) {        naExcludeMvr(object$na.action, object$fitted.values)    } else {        object$fitted.values    }}## residuals.mvr: Extract the residuals.  It is needed because the case## na.action == "na.exclude" must be treated differently from what is done## in residuals.default.residuals.mvr <- function(object, ...) {    if (inherits(object$na.action, "exclude")) {        naExcludeMvr(object$na.action, object$residuals)    } else {        object$residuals    }}## naExcludeMvr: Perform the equivalent of naresid.exclude and## napredict.exclude on three-dimensional arrays where the first dimension## corresponds to the observations.## Almost everything here is lifted verbatim from naresid.exclude (R 2.2.0)naExcludeMvr <- function(omit, x, ...) {    if (length(omit) == 0 || !is.numeric(omit))        stop("invalid argument 'omit'")    if (length(x) == 0)        return(x)    n <- nrow(x)    keep <- rep.int(NA, n + length(omit))    keep[-omit] <- 1:n    x <- x[keep,,, drop = FALSE]        # This is where the real difference is!    temp <- rownames(x)    if (length(temp)) {        temp[omit] <- names(omit)        rownames(x) <- temp    }    return(x)}## loadings is in stats, but doesn't work for prcomp objects, and is not## generic, so we build our own:loadings <- function(object, ...) UseMethod("loadings")loadings.default <- function(object, ...) {    L <- if (inherits(object, "prcomp")) object$rotation else object$loadings    if (!inherits(L, "loadings")) class(L) <- "loadings"    attr(L, "explvar") <- explvar(object)    L}## scores: Return the scores (also works for prcomp/princomp objects):scores <- function(object, ...) UseMethod("scores")scores.default <- function(object, ...) {    S <- if (inherits(object, "prcomp")) object$x else object$scores    if (!inherits(S, "scores")) class(S) <- "scores"    attr(S, "explvar") <- explvar(object)    S}## Yscores: Return the YscoresYscores <- function(object) object$Yscores## loading.weights: Return the loading weights:loading.weights <- function(object) object$loading.weights## Yloadings: Return the YloadingsYloadings <- function(object) object$Yloadings## model.frame.mvr: Extract or generate the model frame from a `mvr' object.## It is simply a slightly modified `model.frame.lm'.model.frame.mvr <- function(formula, ...){    dots <- list(...)    nargs <- dots[match(c("data", "na.action", "subset"), names(dots), 0)]    if (length(nargs) || is.null(formula$model)) {        fcall <- formula$call        fcall$method <- "model.frame"        fcall[[1]] <- as.name("mvr")        fcall[names(nargs)] <- nargs        env <- environment(formula$terms)        if (is.null(env)) env <- parent.frame()        eval(fcall, env, parent.frame())    }    else formula$model}## model.matrix.mvr: Extract the model matrix from an `mvr' object.## It is a modified version of model.matrix.lm.model.matrix.mvr <- function(object, ...){    if (n_match <- match("x", names(object), 0))        object[[n_match]]    else {        data <- model.frame(object, ...)        mm <- NextMethod("model.matrix", data = data)	mm <- delete.intercept(mm) # Deletes any intercept coloumn        ## model.matrix.default prepends the term name to the colnames of        ## matrices.  If there is only one predictor term, and the        ## corresponding matrix has colnames, remove the prepended term name:        mt <- terms(object)        if (length(attr(mt, "term.labels")) == 1 &&            !is.null(colnames(data[[attr(mt, "term.labels")]])))            colnames(mm) <- sub(attr(mt, "term.labels"), "", colnames(mm))        return(mm)    }}## delete.intercept: utilitiy function that deletes the response coloumn from## a model matrix, and adjusts the "assign" attribute:delete.intercept <- function(mm) {    ## Save the attributes prior to removing the intercept coloumn:    saveattr <- attributes(mm)    ## Find the intercept coloumn:    intercept <- which(saveattr$assign == 0)    ## Return if there was no intercept coloumn:    if (!length(intercept)) return(mm)    ## Remove the intercept coloumn:    mm <- mm[,-intercept, drop=FALSE]    ## Update the attributes with the new dimensions:    saveattr$dim <- dim(mm)    saveattr$dimnames <- dimnames(mm)    ## Remove the assignment of the intercept from the attributes:    saveattr$assign <- saveattr$assign[-intercept]    ## Restore the (modified) attributes:    attributes(mm) <- saveattr    ## Return the model matrix:    mm}## The following "extraction" functions are mostly used in plot and summary## functions.## The names of the response variables:respnames <- function(object)    dimnames(fitted(object))[[2]]## The names of the prediction variables:prednames <- function(object, intercept = FALSE) {    if (identical(TRUE, intercept))        c("(Intercept)", rownames(object$loadings))    else        rownames(object$loadings)}## The names of the components:## Note: The components must be selected prior to the format statementcompnames <- function(object, comps, explvar = FALSE, ...) {    M <- if(is.matrix(object)) object else scores(object)    labs <- colnames(M)    if (missing(comps))        comps <- seq(along = labs)    else        labs <- labs[comps]    if (identical(TRUE, explvar) && !is.null(evar <- explvar(M)[comps]))        labs <- paste(labs, " (", format(evar, digits = 2, trim = TRUE),                      " %)", sep = "")    return(labs)}## The explained X variance:explvar <- function(object)    switch(class(object)[1],           mvr = 100 * object$Xvar / object$Xtotvar,           princomp =,           prcomp = 100 * object$sdev^2 / sum(object$sdev^2),           scores =,           loadings = attr(object, "explvar")           )

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
777奇米成人网| 不卡的av电影在线观看| 一区二区三区欧美视频| 一区在线观看免费| 亚洲精品一二三区| 亚洲综合在线五月| 人妖欧美一区二区| 国精产品一区一区三区mba桃花 | 不卡一区中文字幕| 99re6这里只有精品视频在线观看| 成年人网站91| 欧美日韩中文国产| 日韩欧美第一区| 国产精品国产三级国产专播品爱网| 国产精品美女久久久久久久网站| 亚洲色图视频网| 精品国产一区二区三区忘忧草| 91在线视频18| 这里只有精品视频在线观看| 国产目拍亚洲精品99久久精品| 日韩免费成人网| 中文字幕一区二区三区四区不卡 | 国产尤物一区二区在线| 成人国产精品免费观看视频| 欧美影院一区二区三区| 国产三级精品视频| 午夜久久久久久久久| av午夜一区麻豆| 久久久午夜精品| 天天av天天翘天天综合网| 成人精品在线视频观看| 日韩美女一区二区三区四区| 一区二区欧美国产| 成人高清免费在线播放| www欧美成人18+| 五月天亚洲精品| 在线欧美小视频| 一区二区国产盗摄色噜噜| 国产精品一区在线观看乱码| 欧美一区二区网站| 日本成人在线不卡视频| 555www色欧美视频| 久久精品国产亚洲a| 2021久久国产精品不只是精品| 免费在线视频一区| 欧美一区二区三区免费视频| 亚洲二区在线观看| 56国语精品自产拍在线观看| 久久国产福利国产秒拍| 95精品视频在线| 欧美成人综合网站| 麻豆国产精品777777在线| 91精品国产综合久久精品性色 | 成人免费毛片a| 亚洲品质自拍视频| 欧美喷水一区二区| 国产激情一区二区三区| 亚洲男同性视频| 91精品国产91久久久久久最新毛片 | 久久超碰97中文字幕| 国产精品久久久久久久久免费丝袜 | 欧美激情中文字幕| 在线观看一区二区视频| 男女性色大片免费观看一区二区| 国产无遮挡一区二区三区毛片日本| 94-欧美-setu| 国产另类ts人妖一区二区| 亚洲va在线va天堂| 国产精品天天摸av网| 5566中文字幕一区二区电影| av在线播放成人| 国产老肥熟一区二区三区| 亚洲高清免费在线| 日韩一级片网址| 国产精品一色哟哟哟| 日韩精品一级中文字幕精品视频免费观看| 欧美变态tickling挠脚心| 91传媒视频在线播放| 国产精品99久久久久久宅男| 午夜成人免费视频| 亚洲一区二区在线观看视频 | 精品一区二区三区欧美| 日本色综合中文字幕| 亚洲精品国产一区二区三区四区在线 | 欧美成人官网二区| 91年精品国产| www.日韩av| 播五月开心婷婷综合| 国产91丝袜在线播放0| 国产一区二三区好的| 国产一区视频在线看| 精品一区二区在线看| 日韩不卡一区二区| 美腿丝袜亚洲三区| 激情综合网av| 国产传媒久久文化传媒| 成人免费视频播放| 欧美在线不卡视频| 日韩一区二区三区精品视频 | 亚洲va欧美va人人爽| 天天综合日日夜夜精品| 久久99国产精品免费网站| 久久机这里只有精品| 亚洲一二三区在线观看| 婷婷丁香激情综合| 国产一区二区剧情av在线| 成人激情黄色小说| 欧美日韩激情在线| 国产欧美精品一区二区三区四区 | 国产在线一区二区综合免费视频| 精品制服美女久久| 日本伦理一区二区| 国产三级精品三级| 无码av免费一区二区三区试看| 国产精品一卡二卡在线观看| 在线免费观看一区| 国产精品美日韩| 国产麻豆精品在线观看| 欧洲人成人精品| 国产精品久久久久三级| 久久福利视频一区二区| 欧美视频一二三区| 亚洲精品视频免费看| 粉嫩av亚洲一区二区图片| 日韩三级在线观看| 日本亚洲三级在线| 欧美日韩国产大片| 亚洲国产精品久久久男人的天堂| 成人av网在线| 中文字幕一区免费在线观看| 理论片日本一区| 日韩视频国产视频| 精品一区二区三区的国产在线播放| 精品视频免费在线| 五月婷婷欧美视频| 91精品国产91综合久久蜜臀| 日韩电影在线观看网站| 欧美三级电影一区| 日韩电影免费在线观看网站| 成人综合在线观看| 精品免费视频一区二区| 国产麻豆精品一区二区| 久久久不卡网国产精品二区| 国v精品久久久网| 亚洲私人黄色宅男| 欧美少妇性性性| 日韩电影免费在线看| 国产精品理论在线观看| 91免费观看视频| 日韩av网站在线观看| 久久精品亚洲乱码伦伦中文| 一本大道久久a久久精品综合| 五月综合激情婷婷六月色窝| 亚洲精品一区二区三区精华液| 成人av综合一区| 午夜成人免费视频| 亚洲欧美偷拍另类a∨色屁股| 欧美乱熟臀69xxxxxx| 国产精品亚洲专一区二区三区 | jizzjizzjizz欧美| 日韩电影网1区2区| 亚洲自拍偷拍网站| 欧美国产97人人爽人人喊| 日韩午夜激情电影| 欧美疯狂做受xxxx富婆| 91片黄在线观看| 成人爽a毛片一区二区免费| 免费成人在线观看| 亚洲成va人在线观看| 亚洲激情一二三区| 亚洲视频精选在线| 国产精品久久久久桃色tv| 精品成a人在线观看| 欧美一级高清大全免费观看| 欧美日韩亚洲综合一区| 99精品久久99久久久久| 成人国产精品免费观看| 成人av网站免费观看| www.激情成人| 99久久伊人久久99| 91美女片黄在线| 国产综合色产在线精品| 午夜精品成人在线| 蜜桃视频一区二区三区| 麻豆精品在线播放| 极品美女销魂一区二区三区| 国产剧情一区二区三区| 成人avav在线| 91久久精品日日躁夜夜躁欧美| 在线观看日韩电影| 欧美一区二区视频在线观看2020 | 国产精品自在在线| caoporm超碰国产精品| 69久久夜色精品国产69蝌蚪网| 欧美成人女星排名| 亚洲综合色视频| 国模大尺度一区二区三区| 欧洲亚洲国产日韩| 国产精品视频你懂的| 日韩av电影免费观看高清完整版 |