webdw0.2版本用户手册发布[http://liujunsong.a108.xunbiz.com/]

本文探讨了JavaWeb开发的复杂性,分析了HTML语言设计初衷及其对开发效率的影响,并概述了JavaWeb开发过程中面临的多种技术和框架。

Webdw0.2版本用户手册
前言
为什么Java Web开发如此复杂?
互联网出现以后,应用程序的架构迅速发生变化,曾经流行一时的C/S模式很快被B/S模式所取代。但B/S的应用架构相对于C/S的应用架构,要复杂很多。这就造成了应用程序开发的效率低下,界面低效,用户体验差,维护升级困难。按照我个人的经验,以PB和Java来同时开发一套系统,Java的开发效率最多是PB的1/5,而生成的代码总量至少是4倍以上,这一估计还不包括Java本身所需要的各种架构在内,仅就代码而言,包括Java代码和JSP代码。
为什么一个如此流行的开发模式,开发效率会如此之低呢?
这一问题我思考了很久,最后终于找到了答案。Java开发的效率之所以低,最核心的原因在于HTML语言本身。这个语言的设计初衷,仅仅是为了显示标准化的文本而设计的,后来才加上了图形,以及插件,后来为了增加交互性,才增加了JavaScript等脚本的支持。但JavaScript本身又是单独一个标准,不包含在HTML之内。
简单来说一句话,HTML语言在设计的时候,根本就没有考虑过未来应用如何用它来开发,它仅仅是一个显示文本的定义语言。后来为了迁就应用开发的需要,人们在试图在这个地基上面加上其他功能,但又要兼顾对现有标准的支持和兼容,又要兼顾到现有各方的利益诉求,于是HTML本身变得越来越复杂,越来越难以理解,学习它的成本也变得很高,而效果并不明显。
刚才说的是Java的开发效率,怎么又扯到HTML了呢?
这是因为,非常不幸,Java在浏览器上的开发,不仅没有成为主流,而且基本已经被抛弃了,Applet本来是一种非常有前途,非常有潜力的技术,但在政治斗争中成为了牺牲品。现在知道的人已经不多了。
在一般的Java B/S架构开发中,可以用下面的图来演示。


上面这个图仅仅描述了在Java Web开发这个混乱的世界里面,开发一个Java系统所需要的一小部分技术的一小部分。
在浏览器上,开发需要用到的是HTML,JavaScript,Ajax,另外需要考虑:浏览器不同类型,不同版本的兼容性
在Web Server端,一般至少会用到Jsp,Servlet,再加上各种各样,千奇百怪的框架,如Structs,Webwork等等
在App Server端,则是各种技术的混合,EJB,Spring,Hibernate,Itabias,如果愿意写下去的话,恐怕这一张纸都列不完。另外还要考虑不同厂家产品的不同特性,不同版本的不同支持,在不同操作系统平台上的微妙差异等等。
数据库服务器相对要简单一些,但如果愿意的话,也可以搞得很复杂。这个就不再多说了。

Java 的Web开发,用到了太多的技术,太多的框架,太多的产品,也许从某个局部来观察,会认为这个不算太复杂,但从整体上宏观的来看,这个系统是在太复杂了。涉及到了多方面的技术,每一种技术都需要你花时间去了解,去学习,但与此同时它本身还在迅速演化,变异。
但是,这些技术,真的都是那么必要的吗?真的不可缺少吗?
如果答案是肯定的,那么我们就面对着在<<人月神话>>中同样的困境,无数的巨兽在泥沼中挣扎,但它们挣扎得越厉害,陷的就越深。软件行业就会变成一个不断制造复杂性,并且依赖这种复杂性进行生存的行业。在我看来,目前的情况似乎就是如此。大家都在拼命提出一个又一个的新概念,把整个系统搞得越来越复杂,很快系统的复杂性把它自己压垮了。怎么办,推倒重来,升级。买更快的机器,因为我们的程序越来越慢。
硬件行业有一个摩尔定律:
每过十八个月,芯片集成度提高一倍。
软件行业有一个逆摩尔定律:
每过十八个月,软件速度降低一半。(开发速度与运行速度)
两者相加的结果就是:如果你不升级硬件,软件就会越来越慢,最后无法使用。而且即使你升级了硬件,系统的速度还是提不上去。

详细内容请见 http://liujunsong.a108.xunbiz.com/

msn: webdw2009@hotmail.com

分析一下下面crash_log说明了什么情况:09-13 22:22:47.937123 2608 4512 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x910003fda9034ff4 in tid 4512 (binder:2608_2), pid 2608 (mediaserver64) 09-13 22:22:48.394335 9714 9714 F DEBUG : Process name is /system/bin/mediaserver, uid is 1013, not key_process 09-13 22:22:48.394379 9714 9714 F DEBUG : keyProcess: 0 09-13 22:22:48.394388 9714 9714 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 09-13 22:22:48.394396 9714 9714 F DEBUG : Build fingerprint: 'realme/RMX3851/RE5CA6L1:16/UKQ1.231108.001/U.R4T2.11ec7bf_dad81f_d6f779:user/release-keys' 09-13 22:22:48.395135 9714 9714 F DEBUG : Revision: '0' 09-13 22:22:48.395154 9714 9714 F DEBUG : ABI: 'arm64' 09-13 22:22:48.395164 9714 9714 F DEBUG : Timestamp: 2025-09-13 22:22:48.076134769+0800 09-13 22:22:48.395185 9714 9714 F DEBUG : Process uptime: 18083s 09-13 22:22:48.395262 9714 9714 F DEBUG : Cmdline: /system/bin/mediaserver 09-13 22:22:48.395282 9714 9714 F DEBUG : pid: 2608, tid: 4512, name: binder:2608_2 >>> /system/bin/mediaserver <<< 09-13 22:22:48.395506 9714 9714 F DEBUG : uid: 1013 09-13 22:22:48.395534 9714 9714 F DEBUG : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) 09-13 22:22:48.395616 9714 9714 F DEBUG : pac_enabled_keys: 000000000000000f (PR_PAC_APIAKEY, PR_PAC_APIBKEY, PR_PAC_APDAKEY, PR_PAC_APDBKEY) 09-13 22:22:48.395882 9714 9714 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x910003fda9034ff4 09-13 22:22:48.396278 9714 9714 F DEBUG : x0 000000000000003a x1 b400007c97a813a0 x2 0000000000000018 x3 000000ffffffffff 09-13 22:22:48.396393 9714 9714 F DEBUG : x4 0000000000000000 x5 000000000000003a x6 686374602d716463 x7 7f7f7f7f7f7f7f7f 09-13 22:22:48.396594 9714 9714 F DEBUG : x8 910003fda9034ff4 x9 a9bc7bfdd503233f x10 6d74616c2d613470 x11 000000000000000f 09-13 22:22:48.396612 9714 9714 F DEBUG : x12 0000000000001cc0 x13 0000007d1d1b0000 x14 0000007c97a00000 x15 0000000000000000 09-13 22:22:48.396620 9714 9714 F DEBUG : x16 0000007d3dbba4a0 x17 0000007d1d120c00 x18 0000007c8f724000 x19 0000000000000063 09-13 22:22:48.396629 9714 9714 F DEBUG : x20 b400007c8fc10060 x21 0000007d32615518 x22 0000007d3dbb8c30 x23 0000000000000009 09-13 22:22:48.396637 9714 9714 F DEBUG : x24 0000007d3dbb8c10 x25 0000007c8ff72e40 x26 0000007c8ff71ac8 x27 0000007d3dbba008 09-13 22:22:48.396644 9714 9714 F DEBUG : x28 b400007c8fc100b0 x29 0000007c8ff71ae0 09-13 22:22:48.396651 9714 9714 F DEBUG : lr 0000007d3dbae7a8 sp 0000007c8ff71a90 pc 0000007d3dbae7dc pst 0000000000001000 09-13 22:22:48.396659 9714 9714 F DEBUG : 15 total frames 09-13 22:22:48.396664 9714 9714 F DEBUG : backtrace: 09-13 22:22:48.396673 9714 9714 F DEBUG : #00 pc 00000000000087dc /system/lib64/libmediametrics.so (android::mediametrics::Item::writeToByteString(char**, unsigned long*) const+320) (BuildId: 6a84101e8f2620c55d70f7eaccdc5d28) 09-13 22:22:48.396681 9714 9714 F DEBUG : #01 pc 00000000000121a0 /system/lib64/libmediametrics.so (android::mediametrics::Item::selfrecord()+56) (BuildId: 6a84101e8f2620c55d70f7eaccdc5d28) 09-13 22:22:48.396688 9714 9714 F DEBUG : #02 pc 00000000000c7458 /system/lib64/libmediaplayerservice.so (android::StagefrightRecorder::flushAndResetMetrics(bool)+196) (BuildId: 2ef0da2662f5e6a51b1312ae5e1df325) 09-13 22:22:48.396695 9714 9714 F DEBUG : #03 pc 00000000000bb438 /system/lib64/libmediaplayerservice.so (android::StagefrightRecorder::stop()+1440) (BuildId: 2ef0da2662f5e6a51b1312ae5e1df325) 09-13 22:22:48.396701 9714 9714 F DEBUG : #04 pc 000000000001937c /system_ext/lib64/liboplusmediaplayerservice.so (android::OplusStagefrightRecorder::stop()+164) (BuildId: 232c10d4723fd8dd6ee2d5dc4f674bd3) 09-13 22:22:48.396717 9714 9714 F DEBUG : #05 pc 00000000000aa1f4 /system/lib64/libmediaplayerservice.so (android::MediaRecorderClient::stop()+200) (BuildId: 2ef0da2662f5e6a51b1312ae5e1df325) 09-13 22:22:48.396726 9714 9714 F DEBUG : #06 pc 00000000000694a8 /system/lib64/libmedia.so (android::BnMediaRecorder::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+3168) (BuildId: 86bd3bfb181a3a3961df65e493a6c2d9) 09-13 22:22:48.396733 9714 9714 F DEBUG : #07 pc 00000000000502bc /system/lib64/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+324) (BuildId: 830cd17dd6705eb37ab04a5d998c5d3a) 09-13 22:22:48.396740 9714 9714 F DEBUG : #08 pc 0000000000050a54 /system/lib64/libbinder.so (android::IPCThreadState::executeCommand(int)+1136) (BuildId: 830cd17dd6705eb37ab04a5d998c5d3a) 09-13 22:22:48.396746 9714 9714 F DEBUG : #09 pc 000000000007a108 /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+456) (BuildId: 830cd17dd6705eb37ab04a5d998c5d3a) 09-13 22:22:48.396752 9714 9714 F DEBUG : #10 pc 0000000000079ca0 /system/lib64/libbinder.so (android::PoolThread::threadLoop()+100) (BuildId: 830cd17dd6705eb37ab04a5d998c5d3a) 09-13 22:22:48.396758 9714 9714 F DEBUG : #11 pc 0000000000019464 /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+252) (BuildId: 5906596ce9f6df705b3277e9ea0a1997) 09-13 22:22:48.396765 9714 9714 F DEBUG : #12 pc 000000000001bbd0 /system/lib64/libutils.so (libutil_thread_trampoline(void*) (.__uniq.226528677032898775202282855395389835431)+24) (BuildId: 5906596ce9f6df705b3277e9ea0a1997) 09-13 22:22:48.396771 9714 9714 F DEBUG : #13 pc 0000000000097834 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+184) (BuildId: 9e76441edb2b5857bf9a5f4b2977fd96) 09-13 22:22:48.396777 9714 9714 F DEBUG : #14 pc 0000000000089cf4 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 9e76441edb2b5857bf9a5f4b2977fd96)
最新发布
09-27
warnings.warn(msg, ConvergenceWarning) [2]: Selection deleted # 打印固定效应参数 print("固定效应参数:") print(result.params) # 打印随机效应参数(每个 subject_id 的随机截距) print("\n随机效应参数:") print(result.random_effects) 固定效应参数: Intercept 0.069718 gestational_age 0.002925 BMI -0.001253 subject_id Var 2.553846 dtype: float64 随机效应参数: {'A002': subject_id -0.0241 dtype: float64, 'A003': subject_id -0.015615 dtype: float64, 'A004': subject_id -0.014644 dtype: float64, 'A005': subject_id 0.004143 dtype: float64, 'A006': subject_id 0.006619 dtype: float64, 'A007': subject_id -0.048451 dtype: float64, 'A008': subject_id -0.029304 dtype: float64, 'A009': subject_id 0.004582 dtype: float64, 'A010': subject_id -0.054197 dtype: float64, 'A011': subject_id -0.025226 dtype: float64, 'A012': subject_id -0.03176 dtype: float64, 'A013': subject_id 0.041425 dtype: float64, 'A014': subject_id -0.028542 dtype: float64, 'A015': subject_id -0.025124 dtype: float64, 'A016': subject_id -0.00418 dtype: float64, 'A017': subject_id -0.010248 dtype: float64, 'A018': subject_id -0.032113 dtype: float64, 'A019': subject_id -0.01778 dtype: float64, 'A021': subject_id 0.009754 dtype: float64, 'A022': subject_id -0.010009 dtype: float64, 'A023': subject_id -0.040796 dtype: float64, 'A024': subject_id -0.010937 dtype: float64, 'A025': subject_id -0.012872 dtype: float64, 'A026': subject_id -0.031296 dtype: float64, 'A027': subject_id 0.039435 dtype: float64, 'A028': subject_id 0.009234 dtype: float64, 'A029': subject_id -0.006892 dtype: float64, 'A030': subject_id 0.009561 dtype: float64, 'A031': subject_id -0.028594 dtype: float64, 'A032': subject_id -0.02234 dtype: float64, 'A033': subject_id -0.027275 dtype: float64, 'A034': subject_id -0.000575 dtype: float64, 'A035': subject_id -0.030824 dtype: float64, 'A036': subject_id -0.004422 dtype: float64, 'A037': subject_id -0.019842 dtype: float64, 'A038': subject_id -0.02021 dtype: float64, 'A039': subject_id -0.002214 dtype: float64, 'A040': subject_id 0.003687 dtype: float64, 'A041': subject_id -0.04718 dtype: float64, 'A042': subject_id -0.02958 dtype: float64, 'A043': subject_id 0.004375 dtype: float64, 'A044': subject_id -0.032868 dtype: float64, 'A045': subject_id -0.018907 dtype: float64, 'A046': subject_id 0.078197 dtype: float64, 'A047': subject_id 0.00303 dtype: float64, 'A048': subject_id -0.022926 dtype: float64, 'A049': subject_id 0.008099 dtype: float64, 'A050': subject_id 0.001622 dtype: float64, 'A051': subject_id -0.012684 dtype: float64, 'A052': subject_id 0.064128 dtype: float64, 'A053': subject_id -0.033709 dtype: float64, 'A054': subject_id -0.018269 dtype: float64, 'A055': subject_id -0.026648 dtype: float64, 'A056': subject_id -0.001915 dtype: float64, 'A057': subject_id 0.026324 dtype: float64, 'A058': subject_id 0.059396 dtype: float64, 'A059': subject_id 0.00476 dtype: float64, 'A060': subject_id -0.018031 dtype: float64, 'A063': subject_id -0.015188 dtype: float64, 'A064': subject_id 0.018773 dtype: float64, 'A065': subject_id -0.011596 dtype: float64, 'A066': subject_id 0.009195 dtype: float64, 'A067': subject_id -0.022732 dtype: float64, 'A068': subject_id 0.073607 dtype: float64, 'A069': subject_id -0.000419 dtype: float64, 'A070': subject_id -0.006551 dtype: float64, 'A071': subject_id -0.012347 dtype: float64, 'A072': subject_id 0.016389 dtype: float64, 'A073': subject_id -0.017668 dtype: float64, 'A074': subject_id -0.024666 dtype: float64, 'A075': subject_id -0.009324 dtype: float64, 'A076': subject_id 0.05399 dtype: float64, 'A077': subject_id -0.03288 dtype: float64, 'A078': subject_id -0.036375 dtype: float64, 'A079': subject_id -0.03562 dtype: float64, 'A080': subject_id -0.023882 dtype: float64, 'A081': subject_id -0.009661 dtype: float64, 'A082': subject_id 0.033566 dtype: float64, 'A083': subject_id -0.054048 dtype: float64, 'A084': subject_id -0.008166 dtype: float64, 'A085': subject_id -0.009952 dtype: float64, 'A086': subject_id -0.013115 dtype: float64, 'A088': subject_id -0.011539 dtype: float64, 'A089': subject_id 0.020372 dtype: float64, 'A090': subject_id -0.011211 dtype: float64, 'A091': subject_id 0.023893 dtype: float64, 'A092': subject_id -0.031008 dtype: float64, 'A093': subject_id -0.037851 dtype: float64, 'A094': subject_id 0.009058 dtype: float64, 'A096': subject_id -0.030642 dtype: float64, 'A097': subject_id -0.027126 dtype: float64, 'A098': subject_id -0.036493 dtype: float64, 'A099': subject_id -0.018844 dtype: float64, 'A100': subject_id -0.029585 dtype: float64, 'A101': subject_id -0.03873 dtype: float64, 'A102': subject_id -0.003183 dtype: float64, 'A103': subject_id -0.00865 dtype: float64, 'A104': subject_id -0.022193 dtype: float64, 'A105': subject_id -0.008088 dtype: float64, 'A106': subject_id -0.028565 dtype: float64, 'A107': subject_id -0.016143 dtype: float64, 'A108': subject_id -0.007934 dtype: float64, 'A109': subject_id -0.042135 dtype: float64, 'A112': subject_id -0.008954 dtype: float64, 'A113': subject_id -0.046948 dtype: float64, 'A114': subject_id -0.039089 dtype: float64, 'A115': subject_id -0.00504 dtype: float64, 'A117': subject_id -0.015856 dtype: float64, 'A119': subject_id -0.026267 dtype: float64, 'A120': subject_id 0.000711 dtype: float64, 'A121': subject_id -0.029784 dtype: float64, 'A122': subject_id -0.007207 dtype: float64, 'A123': subject_id -0.02117 dtype: float64, 'A124': subject_id -0.000306 dtype: float64, 'A125': subject_id -0.018717 dtype: float64, 'A126': subject_id -0.028226 dtype: float64, 'A127': subject_id -0.011669 dtype: float64, 'A128': subject_id -0.016558 dtype: float64, 'A129': subject_id -0.019243 dtype: float64, 'A130': subject_id -0.027051 dtype: float64, 'A131': subject_id -0.035314 dtype: float64, 'A132': subject_id -0.036051 dtype: float64, 'A133': subject_id -0.001579 dtype: float64, 'A134': subject_id -0.011905 dtype: float64, 'A135': subject_id -0.011882 dtype: float64, 'A137': subject_id -0.019749 dtype: float64, 'A138': subject_id -0.00873 dtype: float64, 'A139': subject_id -0.006935 dtype: float64, 'A140': subject_id -0.017981 dtype: float64, 'A141': subject_id 0.004981 dtype: float64, 'A142': subject_id -0.009005 dtype: float64, 'A144': subject_id -0.009271 dtype: float64, 'A145': subject_id 0.026705 dtype: float64, 'A146': subject_id -0.007596 dtype: float64, 'A147': subject_id -0.023381 dtype: float64, 'A148': subject_id -0.013493 dtype: float64, 'A149': subject_id -0.033491 dtype: float64, 'A150': subject_id 0.007328 dtype: float64, 'A151': subject_id 0.052586 dtype: float64, 'A152': subject_id 0.002625 dtype: float64, 'A153': subject_id -0.013641 dtype: float64, 'A154': subject_id 0.006113 dtype: float64, 'A155': subject_id -0.030423 dtype: float64, 'A156': subject_id 0.009766 dtype: float64, 'A157': subject_id 0.000903 dtype: float64, 'A158': subject_id -0.030776 dtype: float64, 'A159': subject_id -0.035148 dtype: float64, 'A161': subject_id -0.007424 dtype: float64, 'A162': subject_id 0.019363 dtype: float64, 'A163': subject_id -0.049808 dtype: float64, 'A165': subject_id -0.026965 dtype: float64, 'A166': subject_id -0.013713 dtype: float64, 'A167': subject_id 0.015679 dtype: float64, 'A168': subject_id -0.017243 dtype: float64, 'A169': subject_id 0.003616 dtype: float64, 'A170': subject_id 0.021449 dtype: float64, 'A171': subject_id 0.033199 dtype: float64, 'A172': subject_id 0.046082 dtype: float64, 'A173': subject_id 0.023202 dtype: float64, 'A174': subject_id 0.032265 dtype: float64, 'A175': subject_id 0.002419 dtype: float64, 'A176': subject_id 0.01523 dtype: float64, 'A177': subject_id -0.006764 dtype: float64, 'A178': subject_id 0.018188 dtype: float64, 'A179': subject_id 0.003767 dtype: float64, 'A180': subject_id 0.027294 dtype: float64, 'A181': subject_id 0.01353 dtype: float64, 'A182': subject_id 0.007754 dtype: float64, 'A183': subject_id 0.012579 dtype: float64, 'A184': subject_id 0.012745 dtype: float64, 'A185': subject_id 0.038277 dtype: float64, 'A186': subject_id 0.014931 dtype: float64, 'A187': subject_id 0.018021 dtype: float64, 'A188': subject_id -0.001678 dtype: float64, 'A189': subject_id 0.047323 dtype: float64, 'A190': subject_id 0.016779 dtype: float64, 'A191': subject_id -0.00118 dtype: float64, 'A192': subject_id 0.029818 dtype: float64, 'A193': subject_id 0.036221 dtype: float64, 'A194': subject_id -0.013487 dtype: float64, 'A195': subject_id 0.039455 dtype: float64, 'A196': subject_id 0.016022 dtype: float64, 'A197': subject_id 0.027575 dtype: float64, 'A198': subject_id 0.016312 dtype: float64, 'A199': subject_id 0.010426 dtype: float64, 'A200': subject_id -0.016432 dtype: float64, 'A201': subject_id 0.008205 dtype: float64, 'A202': subject_id 0.016157 dtype: float64, 'A203': subject_id 0.031787 dtype: float64, 'A204': subject_id -0.01145 dtype: float64, 'A206': subject_id 0.041824 dtype: float64, 'A207': subject_id -0.00534 dtype: float64, 'A208': subject_id 0.02656 dtype: float64, 'A209': subject_id -0.004094 dtype: float64, 'A210': subject_id 0.012941 dtype: float64, 'A211': subject_id 0.035597 dtype: float64, 'A213': subject_id 0.009168 dtype: float64, 'A214': subject_id 0.016529 dtype: float64, 'A215': subject_id -0.000987 dtype: float64, 'A216': subject_id 0.016592 dtype: float64, 'A217': subject_id -0.010326 dtype: float64, 'A218': subject_id -0.027081 dtype: float64, 'A219': subject_id 0.036571 dtype: float64, 'A220': subject_id 0.054542 dtype: float64, 'A221': subject_id 0.01183 dtype: float64, 'A222': subject_id 0.019852 dtype: float64, 'A223': subject_id 0.013084 dtype: float64, 'A224': subject_id 0.046129 dtype: float64, 'A225': subject_id 0.023303 dtype: float64, 'A226': subject_id 0.007372 dtype: float64, 'A227': subject_id -0.015096 dtype: float64, 'A228': subject_id 0.030342 dtype: float64, 'A229': subject_id 0.009705 dtype: float64, 'A230': subject_id -0.005661 dtype: float64, 'A231': subject_id 0.007411 dtype: float64, 'A232': subject_id 0.017225 dtype: float64, 'A233': subject_id 0.039969 dtype: float64, 'A234': subject_id 0.00276 dtype: float64, 'A235': subject_id 0.006221 dtype: float64, 'A236': subject_id 0.042459 dtype: float64, 'A237': subject_id 0.032187 dtype: float64, 'A238': subject_id 0.034456 dtype: float64, 'A239': subject_id 0.03894 dtype: float64, 'A240': subject_id 0.019455 dtype: float64, 'A241': subject_id 0.013428 dtype: float64, 'A242': subject_id 0.018143 dtype: float64, 'A243': subject_id 0.035597 dtype: float64, 'A244': subject_id 0.051701 dtype: float64, 'A245': subject_id -0.016491 dtype: float64, 'A246': subject_id 0.017419 dtype: float64, 'A247': subject_id 0.031149 dtype: float64, 'A248': subject_id 0.007116 dtype: float64, 'A249': subject_id -0.010424 dtype: float64, 'A250': subject_id 0.026137 dtype: float64, 'A251': subject_id 0.00875 dtype: float64, 'A252': subject_id 0.025593 dtype: float64, 'A253': subject_id 0.036302 dtype: float64, 'A254': subject_id 0.026992 dtype: float64, 'A255': subject_id -0.008625 dtype: float64, 'A256': subject_id 0.036987 dtype: float64, 'A257': subject_id 0.007344 dtype: float64, 'A258': subject_id -0.007284 dtype: float64, 'A259': subject_id 0.037988 dtype: float64, 'A260': subject_id 0.031785 dtype: float64, 'A261': subject_id 0.004856 dtype: float64, 'A262': subject_id 0.03399 dtype: float64, 'A263': subject_id 0.000434 dtype: float64, 'A264': subject_id 0.014552 dtype: float64, 'A265': subject_id 0.016166 dtype: float64, 'A266': subject_id 0.008422 dtype: float64, 'A267': subject_id 0.034722 dtype: float64} [3]: # 提取残差方差 residual_var = result.scale print("残差方差:", residual_var) 残差方差: 0.0003011881431690362 [4]: Selection deleted # F 检验:gestational_age 和 BMI 是否联合显著 print("\nF 检验结果(联合显著性):") f_test = result.f_test(['gestational_age', 'BMI']) print(f_test.summary()) # T 检验:查看每个变量的 p 值 print("\nT 检验结果(p 值):") print(result.pvalues) F 检验结果(联合显著性): <F test: F=79.20489718888852, p=2.4130842803847673e-31, df_denom=617, df_num=2> T 检验结果(p 值): Intercept 4.649165e-04 gestational_age 1.039132e-35 BMI 4.939513e-02 subject_id Var 6.014150e-13说明模型效果怎么样
09-06
固定效应参数: Intercept 0.068466 gestational_age 0.003049 BMI -0.001303 subject_id Var 2.829078 dtype: float64 随机效应参数: {'A001': subject_id -0.035055 dtype: float64, 'A002': subject_id -0.033353 dtype: float64, 'A003': subject_id -0.017354 dtype: float64, 'A004': subject_id -0.019832 dtype: float64, 'A005': subject_id 0.016035 dtype: float64, 'A006': subject_id 0.001921 dtype: float64, 'A007': subject_id -0.048269 dtype: float64, 'A008': subject_id -0.036862 dtype: float64, 'A009': subject_id -0.003584 dtype: float64, 'A010': subject_id -0.055105 dtype: float64, 'A011': subject_id -0.024666 dtype: float64, 'A012': subject_id -0.028721 dtype: float64, 'A013': subject_id 0.032073 dtype: float64, 'A014': subject_id -0.023335 dtype: float64, 'A015': subject_id -0.024835 dtype: float64, 'A016': subject_id 0.002777 dtype: float64, 'A017': subject_id -0.009749 dtype: float64, 'A018': subject_id -0.029843 dtype: float64, 'A019': subject_id -0.01749 dtype: float64, 'A020': subject_id -0.007834 dtype: float64, 'A021': subject_id 0.011509 dtype: float64, 'A022': subject_id -0.011392 dtype: float64, 'A023': subject_id -0.037848 dtype: float64, 'A024': subject_id -0.016556 dtype: float64, 'A025': subject_id -0.015689 dtype: float64, 'A026': subject_id -0.038976 dtype: float64, 'A027': subject_id 0.032786 dtype: float64, 'A028': subject_id 0.007696 dtype: float64, 'A029': subject_id -0.022293 dtype: float64, 'A030': subject_id -0.005793 dtype: float64, 'A031': subject_id -0.03404 dtype: float64, 'A032': subject_id -0.024406 dtype: float64, 'A033': subject_id -0.015139 dtype: float64, 'A034': subject_id -0.009339 dtype: float64, 'A035': subject_id -0.031526 dtype: float64, 'A036': subject_id -0.004511 dtype: float64, 'A037': subject_id -0.024504 dtype: float64, 'A038': subject_id -0.004405 dtype: float64, 'A039': subject_id -0.0016 dtype: float64, 'A040': subject_id 0.011932 dtype: float64, 'A041': subject_id -0.046103 dtype: float64, 'A042': subject_id -0.039831 dtype: float64, 'A043': subject_id -0.001966 dtype: float64, 'A044': subject_id -0.0304 dtype: float64, 'A045': subject_id -0.023667 dtype: float64, 'A046': subject_id 0.0805 dtype: float64, 'A047': subject_id 0.005504 dtype: float64, 'A048': subject_id -0.023314 dtype: float64, 'A049': subject_id 0.009368 dtype: float64, 'A050': subject_id -0.00174 dtype: float64, 'A051': subject_id -0.011905 dtype: float64, 'A052': subject_id 0.054051 dtype: float64, 'A053': subject_id -0.037906 dtype: float64, 'A054': subject_id -0.017991 dtype: float64, 'A055': subject_id -0.016502 dtype: float64, 'A056': subject_id -0.001291 dtype: float64, 'A057': subject_id 0.023071 dtype: float64, 'A058': subject_id 0.056519 dtype: float64, 'A059': subject_id 0.001228 dtype: float64, 'A060': subject_id -0.021285 dtype: float64, 'A061': subject_id 0.011803 dtype: float64, 'A062': subject_id 0.052794 dtype: float64, 'A063': subject_id -0.011451 dtype: float64, 'A064': subject_id 0.033195 dtype: float64, 'A065': subject_id 0.001137 dtype: float64, 'A066': subject_id -0.011142 dtype: float64, 'A067': subject_id -0.023079 dtype: float64, 'A068': subject_id 0.099633 dtype: float64, 'A069': subject_id 0.002017 dtype: float64, 'A070': subject_id -0.007817 dtype: float64, 'A071': subject_id -0.0119 dtype: float64, 'A072': subject_id 0.007295 dtype: float64, 'A073': subject_id -0.018945 dtype: float64, 'A074': subject_id -0.028083 dtype: float64, 'A075': subject_id -0.01609 dtype: float64, 'A076': subject_id 0.046675 dtype: float64, 'A077': subject_id -0.03244 dtype: float64, 'A078': subject_id -0.043326 dtype: float64, 'A079': subject_id -0.036979 dtype: float64, 'A080': subject_id -0.023735 dtype: float64, 'A081': subject_id -0.009078 dtype: float64, 'A082': subject_id 0.015105 dtype: float64, 'A083': subject_id -0.054908 dtype: float64, 'A084': subject_id -0.008697 dtype: float64, 'A085': subject_id -0.009489 dtype: float64, 'A086': subject_id -0.022621 dtype: float64, 'A087': subject_id -0.017947 dtype: float64, 'A088': subject_id -0.010954 dtype: float64, 'A089': subject_id 0.013006 dtype: float64, 'A090': subject_id -0.000138 dtype: float64, 'A091': subject_id 0.027743 dtype: float64, 'A092': subject_id -0.030805 dtype: float64, 'A093': subject_id -0.021612 dtype: float64, 'A094': subject_id 0.010988 dtype: float64, 'A095': subject_id -0.029956 dtype: float64, 'A096': subject_id -0.029488 dtype: float64, 'A097': subject_id -0.026822 dtype: float64, 'A098': subject_id -0.03862 dtype: float64, 'A099': subject_id -0.023127 dtype: float64, 'A100': subject_id -0.038638 dtype: float64, 'A101': subject_id -0.026807 dtype: float64, 'A102': subject_id -0.008197 dtype: float64, 'A103': subject_id -0.008228 dtype: float64, 'A104': subject_id -0.02187 dtype: float64, 'A105': subject_id -0.007831 dtype: float64, 'A106': subject_id -0.02725 dtype: float64, 'A107': subject_id -0.021428 dtype: float64, 'A108': subject_id -0.007573 dtype: float64, 'A109': subject_id -0.041972 dtype: float64, 'A110': subject_id -0.022468 dtype: float64, 'A111': subject_id -0.017535 dtype: float64, 'A112': subject_id -0.006406 dtype: float64, 'A113': subject_id -0.053638 dtype: float64, 'A114': subject_id -0.040818 dtype: float64, 'A115': subject_id -0.010508 dtype: float64, 'A116': subject_id 0.017527 dtype: float64, 'A117': subject_id -0.007331 dtype: float64, 'A118': subject_id -0.018274 dtype: float64, 'A119': subject_id -0.026648 dtype: float64, 'A120': subject_id 0.001926 dtype: float64, 'A121': subject_id -0.035963 dtype: float64, 'A122': subject_id -0.00637 dtype: float64, 'A123': subject_id -0.02079 dtype: float64, 'A124': subject_id -0.009699 dtype: float64, 'A125': subject_id -0.018569 dtype: float64, 'A126': subject_id -0.030934 dtype: float64, 'A127': subject_id -0.011327 dtype: float64, 'A128': subject_id -0.018097 dtype: float64, 'A129': subject_id -0.01029 dtype: float64, 'A130': subject_id -0.009409 dtype: float64, 'A131': subject_id -0.036589 dtype: float64, 'A132': subject_id -0.033433 dtype: float64, 'A133': subject_id 0.000696 dtype: float64, 'A134': subject_id -0.018836 dtype: float64, 'A135': subject_id -0.011257 dtype: float64, 'A136': subject_id -0.031509 dtype: float64, 'A137': subject_id -0.039988 dtype: float64, 'A138': subject_id -0.023922 dtype: float64, 'A139': subject_id 0.033501 dtype: float64, 'A140': subject_id -0.031922 dtype: float64, 'A141': subject_id 0.004147 dtype: float64, 'A142': subject_id -0.006817 dtype: float64, 'A143': subject_id 0.016955 dtype: float64, 'A144': subject_id -0.011032 dtype: float64, 'A145': subject_id -0.003219 dtype: float64, 'A146': subject_id -0.010208 dtype: float64, 'A147': subject_id -0.034973 dtype: float64, 'A148': subject_id -0.021192 dtype: float64, 'A149': subject_id -0.03637 dtype: float64, 'A150': subject_id -0.016161 dtype: float64, 'A151': subject_id 0.053686 dtype: float64, 'A152': subject_id 0.006725 dtype: float64, 'A153': subject_id -0.026578 dtype: float64, 'A154': subject_id 0.010697 dtype: float64, 'A155': subject_id -0.028225 dtype: float64, 'A156': subject_id 0.010207 dtype: float64, 'A157': subject_id -0.005155 dtype: float64, 'A158': subject_id -0.034062 dtype: float64, 'A159': subject_id -0.035848 dtype: float64, 'A160': subject_id -0.049362 dtype: float64, 'A161': subject_id -0.010667 dtype: float64, 'A162': subject_id 0.031484 dtype: float64, 'A163': subject_id -0.047818 dtype: float64, 'A164': subject_id -0.019143 dtype: float64, 'A165': subject_id -0.034536 dtype: float64, 'A166': subject_id -0.017263 dtype: float64, 'A167': subject_id 0.010783 dtype: float64, 'A168': subject_id -0.016895 dtype: float64, 'A169': subject_id 0.007298 dtype: float64, 'A170': subject_id 0.020844 dtype: float64, 'A171': subject_id 0.035059 dtype: float64, 'A172': subject_id 0.051864 dtype: float64, 'A173': subject_id 0.024722 dtype: float64, 'A174': subject_id 0.031727 dtype: float64, 'A175': subject_id 0.008488 dtype: float64, 'A176': subject_id 0.017845 dtype: float64, 'A177': subject_id -0.002793 dtype: float64, 'A178': subject_id 0.019094 dtype: float64, 'A179': subject_id 0.003643 dtype: float64, 'A180': subject_id 0.028681 dtype: float64, 'A181': subject_id 0.013705 dtype: float64, 'A182': subject_id 0.008126 dtype: float64, 'A183': subject_id 0.012754 dtype: float64, 'A184': subject_id 0.014773 dtype: float64, 'A185': subject_id 0.044755 dtype: float64, 'A186': subject_id 0.015975 dtype: float64, 'A187': subject_id 0.021939 dtype: float64, 'A188': subject_id -0.001218 dtype: float64, 'A189': subject_id 0.049337 dtype: float64, 'A190': subject_id 0.018324 dtype: float64, 'A191': subject_id 0.002759 dtype: float64, 'A192': subject_id 0.031426 dtype: float64, 'A193': subject_id 0.038672 dtype: float64, 'A194': subject_id -0.013302 dtype: float64, 'A195': subject_id 0.044341 dtype: float64, 'A196': subject_id 0.017216 dtype: float64, 'A197': subject_id 0.039507 dtype: float64, 'A198': subject_id 0.020454 dtype: float64, 'A199': subject_id 0.012259 dtype: float64, 'A200': subject_id -0.015608 dtype: float64, 'A201': subject_id 0.006145 dtype: float64, 'A202': subject_id 0.01747 dtype: float64, 'A203': subject_id 0.04035 dtype: float64, 'A204': subject_id -0.012706 dtype: float64, 'A205': subject_id 0.044003 dtype: float64, 'A206': subject_id 0.050602 dtype: float64, 'A207': subject_id -0.00632 dtype: float64, 'A208': subject_id 0.027058 dtype: float64, 'A209': subject_id -0.003056 dtype: float64, 'A210': subject_id 0.015636 dtype: float64, 'A211': subject_id 0.037614 dtype: float64, 'A212': subject_id 0.034854 dtype: float64, 'A213': subject_id 0.010366 dtype: float64, 'A214': subject_id 0.019028 dtype: float64, 'A215': subject_id -0.002413 dtype: float64, 'A216': subject_id 0.021927 dtype: float64, 'A217': subject_id -0.008786 dtype: float64, 'A218': subject_id -0.025894 dtype: float64, 'A219': subject_id 0.047479 dtype: float64, 'A220': subject_id 0.056642 dtype: float64, 'A221': subject_id 0.014175 dtype: float64, 'A222': subject_id 0.029246 dtype: float64, 'A223': subject_id 0.013788 dtype: float64, 'A224': subject_id 0.047536 dtype: float64, 'A225': subject_id 0.025669 dtype: float64, 'A226': subject_id 0.009542 dtype: float64, 'A227': subject_id -0.015876 dtype: float64, 'A228': subject_id 0.034077 dtype: float64, 'A229': subject_id 0.010697 dtype: float64, 'A230': subject_id -0.008141 dtype: float64, 'A231': subject_id 0.007941 dtype: float64, 'A232': subject_id 0.017171 dtype: float64, 'A233': subject_id 0.042276 dtype: float64, 'A234': subject_id 0.000055 dtype: float64, 'A235': subject_id 0.006856 dtype: float64, 'A236': subject_id 0.047018 dtype: float64, 'A237': subject_id 0.03415 dtype: float64, 'A238': subject_id 0.037387 dtype: float64, 'A239': subject_id 0.047311 dtype: float64, 'A240': subject_id 0.021462 dtype: float64, 'A241': subject_id 0.014295 dtype: float64, 'A242': subject_id 0.026146 dtype: float64, 'A243': subject_id 0.03765 dtype: float64, 'A244': subject_id 0.062082 dtype: float64, 'A245': subject_id -0.013744 dtype: float64, 'A246': subject_id 0.022484 dtype: float64, 'A247': subject_id 0.032606 dtype: float64, 'A248': subject_id 0.010429 dtype: float64, 'A249': subject_id -0.010792 dtype: float64, 'A250': subject_id 0.033156 dtype: float64, 'A251': subject_id 0.011312 dtype: float64, 'A252': subject_id 0.026192 dtype: float64, 'A253': subject_id 0.039934 dtype: float64, 'A254': subject_id 0.043422 dtype: float64, 'A255': subject_id -0.008678 dtype: float64, 'A256': subject_id 0.038307 dtype: float64, 'A257': subject_id 0.012337 dtype: float64, 'A258': subject_id -0.007633 dtype: float64, 'A259': subject_id 0.047141 dtype: float64, 'A260': subject_id 0.039699 dtype: float64, 'A261': subject_id 0.012697 dtype: float64, 'A262': subject_id 0.034507 dtype: float64, 'A263': subject_id 0.002251 dtype: float64, 'A264': subject_id 0.015835 dtype: float64, 'A265': subject_id 0.015058 dtype: float64, 'A266': subject_id 0.00932 dtype: float64, 'A267': subject_id 0.037195 dtype: float64} Click to add a cell.根据所给参数把这个表达式写出来
09-06
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值