å帰åæ
Benjamini-Hochbergæ³ã®éå帰ã§ã®æ義 éå帰åæã«ããã¦Benjamini-Hochbergæ³ï¼BHæ³ï¼ãé©ç¨ãã主ãªæ義ã¯ãå¤éæ¤å®åé¡ã«å¯¾å¦ãããã¨ã§ãããéå帰åæã§ã¯è¤æ°ã®èª¬æå¤æ°ã®ä¿æ°ã«å¯¾ãã¦åæã«ä»®èª¬æ¤å®ãè¡ããããå½é½æ§ï¼ç¬¬ä¸ç¨®ã®é誤ï¼ãå¢å ããâ¦
robustbaseããã±ã¼ã¸ã§ã¯MMæ¨å®ãSæ¨å®ãKoller & Stahel (2017)ãKoller (2012)ã«ããè£æ£è¨å®ãç¨ããMMæ¨å®ãå¯è½ã§ããã www.rdocumentation.org MMæ¨å® MMæ¨å®ã¯Yohai(1987)ã«ãã£ã¦ææ¡ãããæ¹æ³ã§ãããMMæ¨å®ã¯Mæ¨å®ã§å¾ãããæ®å·®æ¨æºåå·®ãæå°â¦
以åã«æ¸ããããã¹ãæ¨å®ã®æ¹æ³ããã¡ãã«På¤ã®åºãæ¹ãæ¸ãã¦ããªãã£ãã®ã§ãè£è¶³ã ides.hatenablog.com é常ã®éå帰åæ mod <- lm(wage ~ gender + age + education, data = CPS1985) summary(mod) çµæï¼ Coefficients: Estimate Std. Error t valueâ¦
CPS1985ãã¼ã¿ã使ããwageãå¾å±å¤æ°ãgenderã¨ageã¨ç¬ç«å¤æ°ã¨ããéå帰åæãè¡ãã RStudioã§ã®å®è¡ãR.4.3.3+Stools4.3ã使ç¨ã data { int<lower=0> N; // ãµã³ãã«ãµã¤ãº int<lower=0, upper=1> X_1[N]; // ç¬ç«å¤æ°ï¼æ§å¥ã0: ç·æ§ã1: 女æ§ï¼ vector[N] X_2; // ç¬ç«å¤æ°: å¹´</lower=0,></lower=0>â¦
ãã¡ãã®è«æã§æãããã¦ããæ¹æ³ãæ¤è¨ããã www.ncbi.nlm.nih.gov Weiss, B.A. and Dardick, W. (2016) âAn Entropy-Based Measure for Assessing Fuzziness in Logistic Regressionâ, Educational and Psychological Measurement, 76(6), pp. 986â1004.â¦
é åºãã¸ã¹ãã£ãã¯å帰åæãStataãMplusãRã§è¡ã 以åã®ã¨ã³ããªã®æ´æ°ã ides.hatenablog.com brantæ¤å®ãéããªãä¾ã使ã£ã¦ããã Stata brantæ¤å®ãèµ°ããªãå ´åã¯findit spost13_adoããspost13_adoãã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã use https://wwwâ¦
éå帰ã®åæã¯ä¸è¨ã®ãã®ã§ããã ç·å½¢æ§ Linearity...äºæ¸¬å¤æ°ã¨å¾å±å¤æ°ã®æ®å·®éã«ç·å½¢é¢ä¿ãåå¨ããã æ£è¦æ§ Normality ...æ®å·®ãæ£è¦åå¸ããã åæ£åä¸æ§ homoscedasticity ...æ®å·®ã¯ä¸å®ã®åæ£ãæã¤ã¨ä»®å®ãã ç¬ç«æ§ Independence...観測å¤æ°ãâ¦
quantifyinghealth.com 注ï¼åä½ããªãã³ã¼ããæ¸ãæããä¸è¶³ãã¦ãããã®ã«é¢ãã¦æ³¨ã¨ããå½¢ã§è£å®ãã¦ããã é åºãã¸ã¹ãã£ãã¯å帰ã¯ã1ã¤ã¾ãã¯è¤æ°ã®äºæ¸¬å¤æ°ï¼æ°å¤ã¾ãã¯ã«ãã´ãªï¼ã¨é åºçµæã®éã®é¢ä¿ãã¢ãã«ããå帰åæã®ä¸ç¨®ã ãé åºçµæã¯ãâ¦
www.rdocumentation.org åºåç·å½¢å帰ã¢ãã«ã¯ããã¼ã¿ã»ãããè¤æ°ã®åºéã«åå²ããããããã®åºéã§ç·å½¢å帰ã¢ãã«ãé©ç¨ããææ³ã§ãããããã«ããããã¼ã¿ã®å±æçãªå¾åãéç·å½¢ã®ãã¿ã¼ã³ãæãããã¨ãã§ãããããã§ã¯segmentedããã±ã¼ã¸ã使ç¨ãâ¦
Lasso å帰ã¯ããã¼ã¿ã«å¤éå ±ç·æ§ãåå¨ããã¨ãã«ãå帰ã¢ãã«ãé©åãããããã«ä½¿ç¨ã§ããææ³ã§ããã ç°¡åã«è¨ãã¨ãæå°2ä¹å帰ã¯ï¼æ®å·®2ä¹å (RSS) ãæå°åããä¿æ°æ¨å®ãè¦ã¤ããã RSS = Σ(yi - Å·i)2 ãã㧠Σ : åãæå³ããã®ãªã·ã£è¨å· yi: çªâ¦
以åã«Stataã§Lassoããªãã¸å帰ã®ä½¿ãæ¹ã¯è§£èª¬ãã¦ããã ides.hatenablog.com ä»åã¯Rã§ã®å®è¡ä¾ã«ã¤ãã¦ã Lasso Regression Model with R code www.r-bloggers.com Tibshirani (1996) ã¯ããã©ã¡ã¼ã¿ã®é¸æã¨ç¸®å°ã®ããã«ãLASSO (Least Absolute Shrinkâ¦
ãã®æ´æ°ã¯æ´æ°ããã¦ãã¾ãã ides.hatenablog.com brantæ¤å®ããã¾ããããªããã¼ã¿ã§èµ°ããããã£ãã®ã§ãRichard Williamsã®Gologit2ã§ä½¿ç¨ããã¦ãããã¼ã¿ã使ç¨ããã 解æä¾ã¯ä¸è¨ã®PDFå ã«ãããã®ã¨åºæ¬çã«åãã§ããã https://www.stata.com/meâ¦
Stataã§ã®é åºãã¸ã¹ãã£ãã¯å帰åæã®æ¹æ³ã«ã¤ãã¦ã stats.oarc.ucla.edu é åºãã¸ã¹ãã£ãã¯å帰 é åºä»ããã¸ã¹ãã£ãã¯å帰ã®ä¾ ä¾ 1: ãã¼ã±ãã£ã³ã°ã»ãªãµã¼ãä¼ç¤¾ãã人ã ããã¡ã¼ã¹ããã¼ãã»ãã§ã¼ã³ã§æ³¨æããã½ã¼ãã®ãµã¤ãºï¼SãMãLãç¹å¤§ï¼ã«â¦
ãã¡ãã§ã®è¨ç®ãMplusã§æ¤ç®ããã ides.hatenablog.com Mplusç¨ã®ãã¼ã¿ã®æ¸ãåºã insomnia<-read.csv("insomnia.csv",header=TRUE) insomnia<-as.data.frame(insomnia) head(insomnia) library(MplusAutomation) variable.names(insomnia) # å¤æ°åãæ¸â¦
Agrestiã®æ¬ã§ç¤ºããã¦ããä¾ãå®è¡ãã¦ã¿ããã Analysis of Ordinal Categorical Data (Wiley Series in Probability and Statistics Book 656) (English Edition)ä½è :Agresti, AlanWileyAmazon ã³ã¼ãéã®ã¿ããµããªã¡ã³ãã¨ãã¦ãããå ¬éããã¦ããã â¦
ååã¨åããé åºãã¸ã¹ãã£ãã¯å帰ã¢ãã«ã®è©±ãä»åã¯Brantæ¤å®ãå©ç¨ãããã¿ã¼ã³ã ides.hatenablog.com 使ç¨ããã®ã¯MASSããã±ã¼ã¸ã®polré¢æ°ã www.rdocumentation.org ãã¼ã¿ library(MASS) data(housing) dat<- housing head(dat) Sat Infl Type Coâ¦
idreã®è§£èª¬ããã stats.idre.ucla.edu å¾åè¨è¼ããã¦ããparallel slopesã®æ¤å®ã ããç¾å¨ã¯brantããã±ã¼ã¸ã§ã§ããã®ã§ã¯ãªããã¨æãããã®ãã¡ã¨ã³ããªããããã¤ããã ã¯ããã« ãã®ãã¼ã¸ã§ã¯ãRã®porrããã±ã¼ã¸ã使ã£ã¦é åºãã¸ã¹ãã£ãã¯å帰ãâ¦
rpubs.com Kazuki Yoshidaããã«ãã£ã¦ä½æããããã®ãããã farawayããã±ã¼ã¸ã«å«ã¾ããåå°ä½ã¦ã§ãã®ãã¼ã¿ãç¨ããã library(faraway) data(wafer) plot(density(wafer$resist)) çµæã¯é£ç¶çãªãã®ã ããå³ã«å¾ãã¦ããã常ã«æ£ã®å¤ã示ãã¦ãããâ¦
waferãã¼ã¿ã»ããã®èªã¿è¾¼ã¿ library(faraway) data(wafer) waferãã¼ã¿ã»ãããæ·»ä» attach(wafer) åå°ä½å®é¨ã«ãããã¦ã¨ãã®æ度ã®ãã¼ã¿ã ã https://www.rdocumentation.org/packages/faraway/versions/1.0.7/topics/wafer x1 x2 x3 x4 resist 1 - - â¦
å åã¹ã³ã¢ãç¬ç«å¤æ°ã«ãã¦ãéå帰åæã«ã¶ã¡è¾¼ãã è«æãããã¤ãåå¨ãã¦ãããã¨ãç¥ã£ãã Yakubu, Idahor and Isopa(2009) https://www.researchgate.net/publication/50194274_Using_factor_scores_in_multiple_linear_regression_model_for_predictâ¦
ä¸æ¾¤æ¸¯ããã®æ¥è¨ã«æ¸ããã¦ããããã±ã¼ã¸(https://minato.sip21c.org/im3r/20210131.html)ã ããã使ãã¨ï¼lmer()ã§ä½¿ã£ãã¢ãã«ãï¼ãã®ã¾ã¾TeXã®ã³ã¼ãã«ãªããLaTeXã§è«æãæ¸ãã¦ãã人ã¯ãã®ã¾ã¾åãè¾¼ãããï¼WordãLibreOfficeã§è«æãæ¸ãã¦ããâ¦
以åã®ã¨ã³ããªã¼ã®ç¶ãã ides.hatenablog.com ä»åã¯äº¤äºä½ç¨ãå«ãã¢ãã«ã ç¬ç«å¤æ°(ä»å ¥)ã¨åªä»å¤æ°ã¯äº¤äºä½ç¨ãçãããã¨ãå¤ãã®ã§äº¤äºä½ç¨é ãä½æãã¦åæã«å«ããããé£ç¶å¤æ°ã®å ´åã¯ã»ã³ã¿ãªã³ã°(åç §)ãããæ¹ãããã¨è¨ããã¦ãããã¿ã¤ã¿ãâ¦
å ååæã®äºæ¬¡å åã®Ïä¿æ°ãè¨æ¸¬ãããããã±ã¼ã¸ã¯semToolsã使ç¨ããã www.rdocumentation.org Ïä¿æ°ã«ã¤ãã¦ã¯ãã¡ãã ides.hatenablog.com ãã¼ã¿ lavvanã«å梱ããã¦ãããã¼ã¿HolzingerSwineford1939ã使ç¨ãããHolzingerSwineford1939ã使ç¨ããâ¦
www.youtube.com ç°¡æ½ãªèª¬æã åªä»é (Mediator)ã¯ãå æé¢ä¿ããããçµæã®å ã ã£ããã®ã§ãªããã°ãªããªãã 調æ´é (Moderator)ã¯ãå æé¢ä¿ã®çµæã§ãã£ã¦ã¯ãªããªãã
PROCESSã¯Andrew F. Hayesã«ãã£ã¦éçºãããåªä»åæã®ãã¯ãã§ãããæ¥æ¬èªæ å ±ã¯å°ãããç¡ããè±èªã§ã¯å¤ãåºã¦ããã®ã§ãæµ·å¤ã§ã¯ããç¥ãããåæãã¼ã«ãªã®ã ã¨æããPROCESSã使ãåªä»åæã«ã¤ãã¦ãæ¥æ¬èªã®è³æã¯æ°å°ãªãããæµ·å¤ã§ã¯æ¢ã«ä¸è¬åãâ¦
www.statmodel.com ãã¡ãã®Table 8.29ã®ã±ã¼ã¹ã ãã¨ãã¨ã®æ¨å®ã¯ä¸è¨ã®ã¨ã³ããªã¼ã§ããã¡ãã¯æå°¤æ¨å®ãè¡ãã¢ãã«ã§ããã ides.hatenablog.com ides.hatenablog.com ã¢ããã¼ã2 ããã¹ãéã¿ä»ãæå°äºä¹æ³ ãã¼ã¿ã¯ã¹ã¿ãã¯å½¢å¼ãAnalysis: estimatoâ¦
ãã¡ãã®Table 8.22ã®ä¾ã解説ãããã³ã¼ãã¨ãã¼ã¿ã¯ãªã³ã¯å ã®inpãã¡ã¤ã«ãåç §ã®ãã¨ã www.statmodel.com ä»®æ³ãã¼ã¿ã ã¢ãã« mã¯åªä»å¤æ°ãmxã¯mã¨xã®éã®ç¸äºä½ç¨é ãxã¯2å¤ã®æ´é²å¤æ°ã§ããã ã³ã¼ã title: hypothetical potential outcome examplâ¦
ãã¡ãã®Table 8.8ã®ä¾ã解説ãããã³ã¼ãã¯ãªã³ã¯å ã®inpãã¡ã¤ã«ãåç §ã®ãã¨ã www.statmodel.com ãã¼ã¿ 大å¦ç女æ§ã®éã§ãããããã¼ãã¦ã¤ã«ã¹ï¼HPVï¼ã®ã¯ã¯ãã³æ¥ç¨®çãé«ãããã¨ãç®çã¨ããç¡ä½çºåå¯¾ç §è©¦é¨ã®ãã¼ã¿ãåæãã¦ããã被é¨è ã¯3ã¤â¦
Mplusã§è¡ããã¸ã¹ãã£ãã¯å帰åæããã¼ãã¹ãã©ãã500åã®å復ããããã¼ã¸ã§ã³ã ides.hatenablog.com ãã¼ã¿ããã¼ã¿ã®ä¸èº«ã«ã¤ãã¦ã¯å ã®ã¨ã³ããªãåç §ã®ãã¨ã title: logit regression for coalminers data: file =coalminer.dat; variable: namesâ¦
ãã¼ã¿ã®æºå AERããã±ã¼ã¸ã®CPS1985ãã¼ã¿ãå©ç¨ããã library(AER) data(CPS1985) d1 <- CPS1985 caretããã±ã¼ã¸ã®dummyVarsé¢æ°ãç¨ãã¦ãfactoråã®ãã®ããã¹ã¦ããã¼å¤æ°åããã library(caret) dummy <- dummyVars(~.,data=d1) d2 <- as.data.fraâ¦